This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Daily, weekly , Monthly sh files question.

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
NeilP
Advanced User
Advanced User
Posts: 215
Joined: 15 Jul 2012 11:45
Location: Jersey, Channel Islands, Europe
Status: Offline

Daily, weekly , Monthly sh files question.

Post by NeilP »

Hi All

I need someone to tell me how to re do what I did before. I had a backup up system set up at my parents house. FreeNAS box in attic, used as a backup store for the main house machine.

It has been running perfectly since 2009..I had even forgotten it was there and still running. Status page shows it has been up for 400and some odd days.
The other day my mothers Win XP box crashed...missing hal.dll, repair that then missing NTLDR..then something else etc. Long story short had to restore from Acronis backup..clean instal. All 'My Docs' on separate HDD and also backed up to the NAS box via RSYNC service.

Now to the issue.

I have no idea what was on the Win XP machine to run the nightly backups. It was run using some .sh files .Daily Weekly and Monthly files that were originally got from the old FreeNAS forum.
Trouble is, I set ip up so long ago . 4 years or so, that i have no idea what to do with these sh files. How are they run from the Win machine? Seem to remember an app called DeltaCopy, but not sure if that runs the sh files or not.
I no longer have a Windows machine to play with, having moved to mac a few years back.

Anyone tell me what I need to do to get these sh files running the daily weekly and monthly backups to RSYNC on the FreeNAS machine again

thanks

Neil

awinn17
Starter
Starter
Posts: 24
Joined: 28 Apr 2013 15:23
Status: Offline

Re: Daily, weekly , Monthly sh files question.

Post by awinn17 »

Did you get this resolved? I'm looking for a similar use of my NAS- to backup multiple PC's in a similar way.

Preferably to do versioning, so that it doesn't backup a full 400GB every day which would take a lot of time and space but rather writes any new files under a new version day and imports or references any unchanged data version every day/ week/ month/ year.

NeilP
Advanced User
Advanced User
Posts: 215
Joined: 15 Jul 2012 11:45
Location: Jersey, Channel Islands, Europe
Status: Offline

Re: Daily, weekly , Monthly sh files question.

Post by NeilP »

Yes, i did..

and yes it does what yo want...so reliably that I forgot it was still running.

Seem to think these files were run on a schedule on the NAS box itself..cron jobs? the backup from the downstairs windows machine up to the NAS box was done using.

The Windows end is Delta Copy, connecting to the RSYNC service on the NAS box.

these .sh files were not run from the Windows machine..they are scripts? is that the correct term? that run on the NAS box itself..creating weekly/ daily incremental versions ..so as you say the whole 400gb is not backed up.

Delta copy on the Win machine just backup the changes every day on your Windows scheduled run of DeltaCopy. I have the Win machine set to do a forced re boot every night..forcing shutdown of any running programs, so no apps are locking files so they can't be backuped up..Outlook.pst files for instance.


the .sh daily/weekly/monthly scripts ...run from cron I guess. But I can't really remember or give any help in that department.

I could go back to this machine and try and see if I can find these files for you..but not sure when I am next going over to my parents.

they should possibly be in some file archive on here if you search?

Good luck..get back to me if you can't find them and a description of their use on line

abreuma677
NewUser
NewUser
Posts: 1
Joined: 02 Nov 2014 01:17
Status: Offline

Re: Daily, weekly , Monthly sh files question.

Post by abreuma677 »

Sorry to dig up an old thread but it's close to what I'm looking for. Had a FreeNAS server for awhile several years ago. Worked well. Someone talked me into a WHS server for cheap so I gave it a go. My main use is backups, which WHS usually does an excellent job of. The nice thing about WHS is being able to go to previous backups if needed. With the FreeNAS setup I could get good backups but it was just a sync, and if I wanted to go back in time I couldn't. Apparently there's some server-side trickery to do some sort of daily/weekly/monthly backups. Is this documented somewhere?

NeilP
Advanced User
Advanced User
Posts: 215
Joined: 15 Jul 2012 11:45
Location: Jersey, Channel Islands, Europe
Status: Offline

Re: Daily, weekly , Monthly sh files question.

Post by NeilP »

Well what you are referring to is what these scripts are for.

I do have a link to the original documentation...on my father computer...but no idea at the moment when I am going to get there to be able to get it. the link has all the scripts etc ready to download too

When I get around to it..assuming i remember I'll get back to this thread with the link..sorry I can't do it now

NeilP
Advanced User
Advanced User
Posts: 215
Joined: 15 Jul 2012 11:45
Location: Jersey, Channel Islands, Europe
Status: Offline

Re: Daily, weekly , Monthly sh files question.

Post by NeilP »

http://www.mikerubel.org/computers/rsync_snapshots/


sorry it has taken to long to get this to you .

Hope it is still of use.
backupscripts.zip
You do not have the required permissions to view the files attached to this post.

NeilP
Advanced User
Advanced User
Posts: 215
Joined: 15 Jul 2012 11:45
Location: Jersey, Channel Islands, Europe
Status: Offline

Re: Daily, weekly , Monthly sh files question.

Post by NeilP »

I can't work out how to use them though. they are failing to run on the machine they used to run on. :(


the command in the cron job was

/mnt/Backup/.boot/scripts/daysnap.sh /mnt/Backup/Wychwood /mnt/Backup/old

but they are not longer working

and no idea why the scripts were in a hidden folder.

the daily script ran, and created a one day back copy ..using rsync so just the difference copied .
This happens for 7 days, so you end up with 7 days back
Then once a week, the weekly script runs, backing up one of the Daily backs

, then 1st of every month the monthly script runs

NeilP
Advanced User
Advanced User
Posts: 215
Joined: 15 Jul 2012 11:45
Location: Jersey, Channel Islands, Europe
Status: Offline

Re: Daily, weekly , Monthly sh files question.

Post by NeilP »

Ummm, been trying to run those scripts from the console directly on the machine cd to the directory the daysnap.sh script is in, but it wont run like that .

Comes back with
Command Not Found.

So that it the limit to my knowledge, .

Post Reply

Return to “RSYNC”