backup methods
backup linux
Backup methods
1. tar
- Faster than cp or rsync for large number of small files.
tar cf - . | (cd /some/destdir ; tar xf -)
- With progress information. Install pv from sbopkg
tar cf - . | pv | (cd /some/destdir ; tar xf -)
- To a remote host.
tar cf - . | ssh host "(cd /some/destdir ; tar xf -)"
- Disadvantage: It does not work if you use tcsh as a shell.
2. nc with tar copy. This requires netcat on both servers.
- Destination box:
nc -l -p 2342 | tar -C /target/dir -xzf -
- Source box:
tar -cz /source/dir | nc Target_Box 2342
3. gcp copy
- install gcp from sbopkg
gcp -rv srcdir dstdir
4. vcp copy
- install vcp from sbopkg. copy with verbose output.
vcp srcdir dstdir
5. luckybackup. Install from sbopkg
- GUI based.
- CLI based for running from terminal
sudo luckybackup -c /root/.luckyBackup/profiles/default.profile