I have this command to backup a remote machine. The problem is that I need root rights to read and copy all files. I have no root user enabled for security reasons and use sudo
the Ubuntu way. Would I need some cool piping or something to do this?
I am looking for a method to backup a whole disk in case something is screwed up…
What are the directories one should back up, in order to have a backup of all user-generated files?
I’m having some doubts about how to install and allow Linux to correctly read/write to a NTFS formatted harddrive used as backup of various machines (windows included, that’s how I need NTFS).
Is it safe to use rsync
when the source filesystem is mounted and writeable, assuming that it may very well be modified while rsync is running? I presume that under race conditions I may not get the latest modifications, but is there any risk of corruption?
I wonder if there are ways to copy or restore crtime (creation time) for inodes/files/directories in Linux in 2020. I’ve accidentally deleted a folder while I still have a full disk backup, but neither cp -a, nor rsync can restore/copy files/directories crtimes.
Is there a way to back up and restore file ownership and permissions (the things that can be changed with chown
and chmod
)?
I’m trying to compress a folder (/var/www/
) to ~/www_backups/$time.tar
where $time
is the current date.