I have a linux box that has a Windows 7 share mounted. The Linux box has a cron job to copy the contents of the Win7 share to another location on the Linux box -- a backup.
The script run is simply rsync -a etc....
I have another Linux box outside the LAN that runs the same rsync command between the Linux box in the LAN back to the Linux box outside the LAN -- a second backup.
I'm trying to setup a backup script on Ubuntu. Every day I want to copy my local source directory to a backup directory on a remote server uniquely named with the date. (e.g., backup-jan1/, backup-jan2/, etc) It should store a mirror of the earliest state and use difference files to recreate the new backup points.
This is pretty simple with rsync.
I've been trying to make a three stage backup with stage 0 being a full monthly back up, stage 1 being a weekly backup, and stage 2 being a daily backup. I've been trying very hard to use rsync for this but sorting files by date is proving to be problematic.
So I have 140gigs worth of family photos and videos. I have unlimited storage with a domain. So I would like to use that storage to back up these files. I already have a local backup so now I would like a backup in the cloud.
I'm using
rsync --delete -Rav remote:/path/to/maildir/cur /backup/
but I'm finding lots of files on remote that are not getting copied by rsync, while others are copied. Rsync does not throw any errors, it's like it just doesn't see some files.
On my Debian Squeeze server, a filesystem crashed badly. I ran fsck.ext4 on it and it corrected many things. Now everything seems to be fine. Additionally, ran an rsync from a recent backup to the failed filesystem.
My question: Now that rsync has run, can I safely assume that the file contents on my server are identical to those in the backup?
I heard that rsync isn't the best one when creating the first backup in terms of performance. Instead it is the best for the later backups. So I wonder what are some better commands for creating the first backup, and what your usages for them are?
I'm looking for a cloud backup provider that uses rsync. I have used rsync.net for many years but their pricing model isn't keeping up with the rest of the market and I'm looking at several tens of gigabytes of storage.
I'm using rsync to copy some source code. The copied code must not be modified at the destination place, so I set --chmod=u-w flag to make it read-only after copying.
rsync --delete -a --chmod=u-w
First is working well.