Backup router-a¶
backup /etc¶
root@router-wan-sa-1:/# tar cf /tmp/router-wan-sa-1_etc.tar etc
backup /mnt/1 mrežne lokacije¶
root@router-wan-sa-1:/mnt/1# tar cf /tmp/router-wan-sa-1_mnt_1.tar .
prebacujem tar-ove na svoj desktop¶
root@router-wan-sa-1:/# scp /tmp/router-wan-sa-1*tar hernad@192.168.45.153:~/Desktop
router-wan-sa-1_etc.tar 100% 235KB 234.5KB/s 00:01 router-wan-sa-1_mnt_1.tar 100% 2352KB 784.0KB/s 00:03
sadržaj je
hernad@nmraka-1:~/Desktop$ tar tvf router-wan-sa-1_etc.tar
drwxr-xr-x root/root 0 2008-04-24 17:48 etc/ lrwxrwxrwx 1000/1000 0 2000-01-01 01:00 etc/TZ -> /tmp/TZ ..
hernad@nmraka-1:~/Desktop$ tar tvf router-wan-sa-1_mnt_1.tar
drwx------ root/root 0 2000-01-01 01:00 ./ drwxr-xr-x root/root 0 2008-04-24 18:59 ./etc/ drwxr-xr-x root/root 0 2008-04-24 18:59 ./etc/config/ -rwxr-xr-x root/root 32 2008-04-10 15:38 ./etc/config/cron ,,,
pa to gpg-ujem root lozinkom router-a prije prije stavljanja na ticket
hernad@nmraka-1:~/Desktop$ gpg -c router-wan-sa-1_etc.tar hernad@nmraka-1:~/Desktop$ gpg -c router-wan-sa-1_mnt_1.tar