🐧🔥 BACKUP: RSYNC vs BTRFS SEND/RECEIVE on Linux

in linux •  5 years ago 

People realize that backups and security are important always when it's too late, in this video we'll compare 2 different technologies to create and maintain a copy of some important data in another SSD/Hard disk in different scenarios.
rsync+ext4 is a well known combo and btrfs is the emerging technology which combine speed and more efficient snapshots.

#rsync #backup #btrfs #linux

rsync

rsync -a --delete --progress /media/user/ext4-source /media/user/ext4-destination

ext4 ‣ rsync ‣ ext4
14.56s 1-first-sync
01.47s 2-small-change
23.40s 3-rename-dir
22.60s 4-big-file
01.77s 5-rm-big-file

first full sync

time -p sh -c 'btrfs subvolume snapshot -r /media/user/btrfs-source /media/user/btrfs-source/@1-first-sync &&
btrfs send /media/user/btrfs-source/@1-first-sync | btrfs receive /media/user/btrfs-destination/'

partial snapshots

time -p sh -c 'btrfs subvolume snapshot -r /media/user/btrfs-source/@1-first-sync /media/user/btrfs-source/@2-small-change &&
btrfs send -p /media/user/btrfs-source/@1-first-sync /media/user/btrfs-source/@2-small-change | btrfs receive /media/user/btrfs-destination/'

btrfs ‣ send-receive ‣ btrfs
49.30s 1-first-sync
00.06s 2-small-change
00.07s 3-rename-dir
15.05s 4-big-file
00.09s 5-rm-big-file

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!