Hello thank's metallica1973
I used your instruction now to backup my full system but system only not /home directory's or other drives. I do not create a .cpio file but use pass trough copy. hardrive space is not a problem, I use a seperated internal drive for my backup's. Which is mounted on /media/databackup (made an fstab entry for it) The modified instruction here.
find . \( -wholename ./proc -o -wholename ./dev -o -wholename ./tmp -o -wholename ./var/run -o -wholename ./sys -o -wholename ./media -o -wholename ./home \) -prune -o -print | cpio -apdmv /media/databackup/linuxos
cpio options
-p passtrough copy in out
-d make dirs
-m preserve modification
-v verbose
-a reset-access-time
*note i also ignored de /var/run
For the home directory I just backup as root using cp
cp -afprv /home/myhomedir /media/databackup/home
cp options
-a = archive
-f= force
-p = preserve
-r= recursive
-v= verbose to show actions performed
To make my life easy I just make scripts of it which I run as sudo. -
