jdd@dodin.org wrote:
Hello,
I need some hints around the rsync use.
....
what may be the rsync syntax to a cron job to backup root and /home like this? rsync or any other simple tool. date can be limited to, say, three month in the past, and all what is older removed if no more present
Depends what/how you want it. We use a script that makes use of --link-dest, to use hard links in the backup. It basically does a full rsync backup once, and then creates new backups in separate directories (named by date) that contain the full backup, but only changed files (relative to the previous backup) actually consume space on the disk. The call would be something like rsync -avpogt --link-dest=/backup/<Last_Backup> /save/this/dir/ /backup/<New_Backup> Then you need some scripting around this to find the lates previous backup and to remove older ones. We do backups (only) on daily basis, so dirnames are just the date. If you want to run it more often that should also include the hour. Drawback is that you cannot easily see what has changed (other than running diff -qr on the directories). But you have a full tree available, similar to what btrfs snapshots / snapper give. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org