You are not logged in.
I am attempting to do a full system backup with rsync as described on the Wiki to an external NTFS-formatted WD hard drive. I am having 2 issues.
First, the rsync script is not including some of the files that I have written into the include list, and is not excluding my ~/Music directory.
The script that I am using is this:
#!/bin/sh
#Uses rsync to create a bootable backup copy
sudo sh -c "
rsync -av --delete-excluded --exclude-from=/home/sensei/backup.lst / $1;
touch $1/ARCH_BACKUP
"and my ~/backup.lst is this:
# Include
+ /dev/console
+ /dev/initctl
+ /dev/null
+ /dev/zero
+ /home/sensei/Documents/Scripts/*
+ /home/sensei/Pictures/Icons/*
+ /home/sensei/Pictures/Wallpapers/*
# Exclude
- /dev/*
- /proc/*
- /sys/*
- /tmp/*
- lost+found/
- /media/*
- /home/sensei/Videos/*
- /home/sensei/Documents/*
- /home/sensei/EBooks/*
- /home/sensei/Downloads/*
- /home/sensei/Music/*
- /home/sensei/Comics/*
- /home/sensei/Pictures/*
- /home/sensei/Audiobooks/*
- /home/sensei/Podcasts/*I am using this command to run the script:
rbackup.sh /media/TVT_RNR/ARCH_BACKUP/The script is not including my ~/Documents/Scripts/ ~/Pictures/Icons and ~Pictures/Wallpapers but /dev/zero /dev/console /dev/null and /dev/initctl are included.
The 2nd problem is that I cannot install grub on the external drive. After I 'sudo grub' into the grub console and I do 'root (hd1,0)' I get this error:
Filesystem type unknown, partition type 0x7The 1st problem is inconvenient but the 2nd is major, so maybe I have them out of order
Thanks in advance for your help.
Offline
I am attempting to do a full system backup with rsync as described on the Wiki to an external NTFS-formatted WD hard drive. I am having 2 issues.
I presume you have a Linux file system, possibly an ext3 or ext4 one. NTFS will not work for a backup, f.e. NTFS doesn't distinguish between upper-lower case, does not have the same
permissions structure ( the rwxrwxrwx one sees in directory listings), part of the Linux fields for access times (read/write/create date and time) aren't there either.
That is, a lot of information is lost, a file named "foobar" will overwrite a "FOOBAR" one...
My 2 cents.
Mektub
Follow me on twitter: https://twitter.com/johnbina
Offline
as for the second problem - grub (afaik) cannot be installed to an NTFS filesystem. You may want to create a separate partition for it. A small one - ~100MB would be more than enough.
What happened to Arch's KISS? systemd sure is stupid but I must have missed the simple part ...
... and who is general Failure and why is he reading my harddisk?
Offline
Try:
+ /home/sensei/Documents/ScriptsCLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Thank you all for your responses. I think I'll abandon the bootable system backup, but I do want to use rsync to backup all my most important configuration files. What directories/files are more important to preserve?
I could use some help regarding the proper syntax to include only certain directories listed in a file, I have read the man file and I have tried --files-from and --include-from as well --exclude-from with this backup.lst running 'rsync -av --exclude-from=backup.lst --delete-excluded / /media/usbdrive'
# Include
+ /etc/
+ /etc/*
+ /var/
+ /var/lib/
+ /var/lib/pacman/
+ /var/lib/pacman/local
+ /var/lib/pacman/local/*
+ /home/
+ /home/sensei/
+ /home/sensei/.config
+ /home/sensei/.config/*
# Exclude
- *but none of these are able to backup all of the contents recursively of the desired directories. This list was intended to backup all the contents of the /etc, the /var/lib/pacman/local and the ~/.config directories, but the backup stops earlier than intended after copying the contents only at the level of the directory but not the full hierarchy. I have tried the -r option but that does not seem to be the answer either.
Last edited by mynameisneo (2012-04-03 03:59:48)
Offline