You are not logged in.
Pages: 1
I saw a how-to online about making a system backup. Wondering if this script below will actually work?
(Assume that I'm not running any programs and generally have the system idling when I run it.)
And if used, how would I actually restore a backup from it?
I'm guessing format the system volume clean, boot from a liveCD and run the (un)tar command onto that clean volume?
Thanks!
#!/bin/sh
sudo -v
mount /mnt/usb
# CLEAN UP FILESYSTEM HISTORY
sudo truncate -s0 /root/.bash_history
sudo truncate -s0 /root/.lesshst
truncate -s0 /home/myname/.bash_history
truncate -s0 /home/myname/.lesshst
sudo tar cvpfz /mnt/usb/backup.tgz --exclude=/lost+found/* --exclude=/mnt/* --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* --exclude=/swapfile --exclude=/home/myname/.cache/* / | tee /mnt/usb/backup.log
umount /mnt/usbOffline
Offline
https://bbs.archlinux.org/viewtopic.php?pid=1685075 gnu tar still does not support capabilities.
Offline
Pages: 1