Re: Backup Command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 10 of January 2011 14:25:32 Carl Cook wrote:
> Here is my proposed cron:
> 
> btrfs subvolume snapshot hex:///home /media/backups/snapshots/hex-{DATE}
> 
> rsync --archive --hard-links --delete-during --delete-excluded --inplace
> --numeric-ids -e ssh --exclude-from=/media/backups/exclude-hex hex:///home
> /media/backups/hex
> 
> btrfs subvolume snapshot droog:///home
> /media/backups/snapshots/droog-{DATE}
> 
> rsync --archive --hard-links --delete-during --delete-excluded --inplace
> --numeric-ids -e ssh --exclude-from=/media/backups/exclude-droog
> droog:///home /media/backups/droog
> 
> Comments?  Criticisms?

This will make the dates associated with snapshots offset by how often cron is 
run.

In other words, if you run above script daily you will have data from 
2011.01.01 in the hex-2011.01.02 directory.

I do save the current date, do a LVM snapshot on the source, rsync --inplace 
data over and do a local snapshot naming the folder using the saved date. This 
way the date in the name of backup directory is exact to about a second.
-- 
Hubert Kario
QBS - Quality Business Software
02-656 Warszawa, ul. Ksawerów 30/85
tel. +48 (22) 646-61-51, 646-74-24
www.qbs.com.pl
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux