On Fri 06 Mar 2015 04:42:21 PM CST, don fisher wrote:
On 03/06/15 14:24, Bob Williams wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 06/03/15 20:54, Malcolm wrote:
On Fri 06 Mar 2015 01:47:41 PM CST, don fisher wrote:
Hello,
In the pas I have user rsync to update portable disks that I can keep off site. It is not clear to me how to do the same thing with the subvolumes. I assume I could duplicate the structure and use rsync on each subvolume, but if the structure is changed how will rsync know?
There must be a tool, but I could not locate it on google or openSuse. With standard file systems all one has to do is rsync / to the other disk. Looking for a way to duplicate my system.
Don
Hi Don This should give you some ideas.... https://btrfs.wiki.kernel.org/index.php/Incremental_Backup
In the event of something amiss you should be able to boot into a previous snapshot?
I have a similar setup, using btrfs on my desktop's internal drives and also on an external removable enclosure. I tried using btrfs send|receive and can confirm that it is much faster than rsync. However, every 'folder' has to be a btrfs subvolume, which requires a bit of advanced planning, and lacks flexibility.
I ended up writing a python script that uses rsync to do the daily backup of each folder to an equivalent folder on the destination drive. This is followed by a btrfs snapshot of the backed up folder, and deletion of snapshots older than a predefined age (90 days here, but that can be changed in the python script). Combined with .rsync-filter files in each source directory and the rsync -F option, this gives me the granularity I need. I'm prepared to tolerate the increased time for each backup - currently 4.5 minutes to backup / (8.5GB), ~/Documents (5.5GB), ~/Pictures (136GB), ~/music (590GB), and various miscellaneous folders. Obviously the initial run takes much longer.
Bob - -- Bob Williams System: Linux 3.16.7-7-desktop Distro: openSUSE 13.2 (x86_64) with KDE Development Platform: 4.14.3 Uptime: 06:00am up 7:55, 3 users, load average: 0.16, 0.05, 0.06 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2
iEYEARECAAYFAlT6GycACgkQ0Sr7eZJrmU6y4wCdH9IIYiA0tyCyf7Ump/OuuxQu mFMAmwd3wjmUOuHl7Ip/aGgxn8FIHhhv =8JbF -----END PGP SIGNATURE-----
I actually have an additional problem. I built my system on a hard drive, then purchased a SSD, both 1TB. The first thing I would like to do is move my system to the SSD. But the SSDs have limited lifespan so I was hoping to keep an image of the SSD on the existing hard drive. btrfs is supposed to optimize blocking for SSD drives, so I would like it to make the optimized partitions, which I assume will be different than on the rotating media. I would have thought somebody would have made an app like rsync to do this before putting btrfs is full use. In the medical community, for instance, one is required by law to keep off site backups in case of fire etc.
Don Hi You will find your worries about SSD's are that just worries that can be IMHO ignored these days.
I don't get large SSD's instead I use 120GB devices and bcache to feed rotating rust (hybrid drive). I have three SSD's with thousands (5000~19000) of hours with no wear or errors indicated. I don't even worry about them, all write about 6GB per day, the OCZ is rated at 20GB per day. -- Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890) SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.36-38-default up 1 day 8:17, 3 users, load average: 0.23, 0.28, 0.31 CPU AMD A4-5150M APU @ 3.3GHz | GPU Richland Radeon HD 8350G -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org