Im new to linux backup.
Im thinking of full system backup of my linux server using tar.
I came up with the following code:
tar -zcvpf /archive/fullbackup.tar.gz
--exclude=/archive
--exclude=/mnt
--exclude=/proc
--exclude=/lost+found
--exclude=/dev
--exclude=/sys
--exclude=/tmp
/
and if in need of any hardware problem, restore it with
cd /
tar -zxpvf fullbackup.tar.gz
But does my ab
I am trying to create a tar backup script.
I have an rsync command for copying my files from dev to production. I don't want to copy the .htaccess file that's in the root of the HTML directory but, I do want to copy the few .htaccess files that are in its sub directories.
I'm using the argument --exclude .htaccess which is stopping all of the files from getting copied.
I use a variant of the simple script below from the Community Ubuntu Documentation described
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev /
I used it again on Ubuntu 12.04 and I saw some files from the /run being skipped by the script.
I'm having trouble understanding the exclude option in tar. From some web sites, it seems one is able to exclude several strings by enclosing them in curly brackets.
Hi,
I'm trying to run a command from an ubuntu howto page, but there's something wrong with it that i dont understand?
Can you point it out please?
Thanks
root@nnjond-desktop:/# tar -cvpzf backup.tar.gz -exclude=/backup.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev /
Some folks do a manual backup, then they leave the big file, eg. backup-9.23.2012_18-55-42_user.tar.gz in their subweb, then later they do another manual backup....
I'm sure you get where I'm going here, each backup archive expands exponentially in size because it includes a backup, of the previous backup archive, of the previous backup archive, etc. etc.
If I have the following directory:
$ ls -a foo
. ..
I want to exclude all not hidden files and directories from my remastersysbackup via a regular expression.
In other words, I aim at doing a backup where my home folder is containing only hidden files/directories and I just can set exclude options.