On Fri, 06 Mar 2015 21:24:57 +0000 Bob Williams <linux@barrowhillfarm.org.uk> 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-----
Bob, would you be willing to provide the source code for your backup routine software? I'd be interested in how it specifies drives/partitions/folders. It wouldn't need to be well documented in MY case as I am fairly familiar with python but others might find that useful. (Hopefully you did that for your own future use - I forget things TOOOOO quickly). Thanks, Tom kg7cfc -- Forgiveness is really not about someone’s harmful behavior; it’s about our own relationship with our past. When we begin the work of forgiveness, it is primarily a practice for ourselves. - Gina Sharpe, “The Power of Forgiveness ^^ --... ...-- / -.- --. --... -.-. ..-. -.-. ^^^^ Tom Taylor KG7CFC openSUSE 13.1 (64-bit), Kernel 3.11.6-4-default, KDE 4.11.2, AMD Phenom X4 955, GeForce GTX 550 Ti (Nvidia 337.19) 16GB RAM -- 3x1.5TB sata2 -- 128GB-SSD FF 27.0, claws-mail 3.10.0 registered linux user 263467 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org