My experiment


Setup


At first I created an Ext4 Partition on my PC using gparted.

Then I booted into a small Arch GNU/Linux installation in the hope that this would bring a better performance. Then I attached my Raspberry Pi with a only a bit modified Raspbian GNU/Linux Installation via Ethernet switch to the PC.

Then I mounted the Ext4 partition. 


Copying


After this I copied the / partition of the Pi to my PC.

rsync -rlptgoDXvxzH --numeric-ids --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} root@raspberrypi:/ rsync_mount/


This took about 20 minutes. If you copy your server to your NAS you may need


a flatrate (or a lot of money;) )
a lot of time


bricking the Raspberry Pi



Then I bricked my Raspberry Pi using

ssh root@raspberrypi

rm -r /run /var /etc /usr


Then I had to unplug the power cable because nothing was working anymore.


repairing the Raspberry Pi


Finally I plugged the SD-Card of the Rpi into my computer, mounted it and repaired it using

cp -rpvxH  rsync_mount/* rpi_mount/


after unmounting the SD-Card and booting the Rpi everything worked fine again.

Fazit

The part with rsync worked fine, but I do not know if it will work with a complete new installation. Maybe then the kernel will not fit to what you copy back on the server.

I will make another try, where I install a newer kernel version after rsyncing.

Diff between backups: see permissions, group and owner and sym link differences
I've tried adding the lineno package to my document. It's nice but I would like to make the numbers a different colour, like a light grey or blue, if possible.

Can I do this in my style document where I add the package, somehow? I am already using the xcolor package as well.
