rsync backup

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

 



Here is the most basic use of rsync to perform backup of your computer. This is very easy to understand and that is why I did it. Below is a bash file that calls rsync with the -avg filters and it sets up the things to be backed up. I stopped backing up /sys because it has some things that do not want to be copied.

# This is the rsync bash file for root

rsync -avg /home/ /media/disk/

rsync -avg /etc /media/disk/

rsync -avg /usr /media/disk/

rsync -avg /boot /media/disk/

rsync -avg /var /media/disk/

rsync -avg /bin /media/disk/

rsync -avg /lib /media/disk/

rsync -avg /root /media/disk/

rsync -avg /sbin /media/disk/

# rsync -avg /sys /media/disk/

Last evening it took about an hour for rsync to backup all this stuff and put it on the USB connected hard drive at /media/drive/. Here is what it looked like this morning.


[root@k5di disk]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdb6             39674192   7651488  29974820  21% /
tmpfs                   241388         0    241388   0% /dev/shm
/dev/sdg1              9614116   7538928   1586816  83% /media/disk
[root@k5di disk]# ls
bin  boot  etc  karl  lib  root  sbin  sys  usr  var
[root@k5di disk]#

The portable hard drive is too small. I need to get a bigger one. You can see the backed up directories on the portable disk drive. As the first incremental backup is started you see things like this:

karl/work/thunderbird/
karl/work/thunderbird/updates/0/

sent 520737900 bytes  received 1810 bytes  7602039.56 bytes/sec
total size is 4010614859  speedup is 7.70
building file list ... done

	In /home/karl/ there was just a small amount to back up.


etc/
etc/adjtime
etc/aliases.db
etc/mtab
etc/printcap
etc/reader.conf
etc/resolv.conf
etc/resolv.conf.predhclient
etc/smartd.conf
etc/alsa/asound.state
etc/blkid/
etc/blkid/blkid.tab
etc/blkid/blkid.tab.old
etc/sysconfig/hwconf

sent 95719 bytes  received 296 bytes  21336.67 bytes/sec
total size is 108638339  speedup is 1131.47
building file list ...

building file list ... done

sent 2235 bytes  received 20 bytes  4510.00 bytes/sec
total size is 5699262  speedup is 2527.39
building file list ... done

sent 59279 bytes  received 20 bytes  16942.57 bytes/sec
total size is 67401743  speedup is 1136.64
building file list ... done
root/
root/.bash_history
root/.joe_state
root/.xauthl7nMSL
root/bin/
root/bin/back
root/bin/back~

sent 15169 bytes  received 142 bytes  30622.00 bytes/sec
total size is 4890664  speedup is 319.42
building file list ... done

sent 5625 bytes  received 20 bytes  3763.33 bytes/sec
total size is 21936037  speedup is 3885.92
[root@k5di]

So you see the first incremenmtal backup was just about 5 minutes in duration. All this needs to be saved while we design a better way to do this.


--

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux