0
votes
2answers
17 views

Where to “--exclude” the specific directory's in mine backup script using tar

I want to backup my whole linux server but where do i --exclude=proc --exclude=sys --exclude=dev/pts --exclude=/var/backups . Please help!!! Here is my code. I may also have some errors in it. ...
0
votes
1answer
35 views

tar commands returns stdin error

tar -xvfz files.tgz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now This the error i got. (This file is created by tar -cvzf file.tgz file ) ...
0
votes
1answer
56 views

Permission error trying this backup script

I am trying this Backup Shell Script from the server guide. Granted it's for my desktop running Xubuntu 14.04. The NFS is mounted and accessible. The script has been created and edited with the ...
0
votes
1answer
36 views

Restoring backup with tar

hi i'am usin Ubuntu server 14.04 I want to backup all data in /mnt/backups/(pictures music etc.) i use: tar -cvpzf backup.tar.gz /mnt/backups/ and i want recover into /home/john/recover/ i use: tar ...
1
vote
0answers
50 views

Tar restore from tape fails

I have a basic backup to tape script and restore script that was written by a previous admin. When trying to restore from tape, I get the following error: tar: v: Cannot open: No such file or ...
3
votes
1answer
55 views

what happens if i delete a file while tar is processing it?

I am attempting to backup my filesystem with the following command: tar -cvjf /fs.bz2 --exclude=/fs.bz2 --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys / This command has been ...
0
votes
2answers
126 views

find/tar combination to backup certain files at one level, and all files in one subdirectory

Our server's directory structure is like this /home/site1/public_html /home/site1/logs /home/site1/cgi-bin etc...(it's the standard when using virtualmin) What I want to schedule backups for is ...
1
vote
0answers
356 views

Tar extract error - implausibly old time stamp 1970-01-01 01:00:00 [closed]

I was create a tar script to make a backup of / directory on flash drive with exluding these folders: /lost+found /mnt /media /proc /sys /tmp Here's a fragment of script: sudo tar -zcpf ...
0
votes
1answer
343 views

How to correctly restore system from tar backup?

Ok, so I decided to make a backup of my ubuntu 13.04 system using tar. I was following guide here and I made a backup of my ubuntu installation. Now, what I don't understand, is how to restore from ...
0
votes
0answers
99 views

Can't login after restoring backup with TAR

I created backup of ~/. with TAR by the command-line. I excluded folders like /proc, /sys etc. But I included the /home folder because there are some important configuration files for settings of ...
4
votes
1answer
162 views

Can I tar the whole system, clear everything and untar it back?

I have to do the whole system cleanup, deleting and recreating all partitions. I'm wondering if I could simply tar all my / (excluding proc, sys and mnt) into archive and then untar it into clear ...
9
votes
1answer
14k views

How do I extract a specific file from a tar archive?

Hi is possible to restore a single file from the .tar backup ? I dont want to restore total backup . i just want to restore one single file from the backup .
1
vote
1answer
3k views

How can I backup and encrypt with tar, split and openssl, all in one command?

I often use tar to backup my stuff in 4 gigabyte chunks to a directory on a FAT32-formatted disk, as documented here. To get that done, I use the following command: tar -cvpj /path/to/directory/ | ...
1
vote
1answer
2k views

(tar: /dev/nst0: Cannot read: Cannot allocate memory) with tar, pv and tape drive

I'm trying to use pv (pipeviewer) along with tar to do tape backups in order to see the progress and eta like so: du -s /home/myuser 115630916 /home/myuser tar -cf - /home/myuser/ | pv -s 115630916 ...
5
votes
2answers
8k views

Encrypt tar.gz file on create

I have a script which creates a nightly backup of several directories. It is created using tar -czf, and the destination tar.gz file path is on a mounted network directory. The resulting file is ...
1
vote
1answer
370 views

Can you help me remotely backup my filesystem?

The institution I work for wants me to backup the entire filesystem of a server and store it on another server. Both servers are running the latest release of Ubuntu. I'm having a little bit of ...
0
votes
3answers
618 views

tar: “Cann't stat: No such file or directory”

Following command sudo tar jcf /datos/backup/news/news.tar.bz2 -C /var/www/news news is giving "tar: Cann't stat: No such file or directory" error. How can I solve this problem? As it had been ...
4
votes
2answers
261 views

how would I create a tar without using sudo?

If I tar my /home/username and create the .tar file in /home/username, then I get an error of the sort . file changed as we read it probably because the directory file itself is changing due to the ...
2
votes
1answer
580 views

backup by compress tar each directory

I’m looking for a method to scan a directory (not recursive) and tar it using the original folder name, and then delete the folder (so I will have only the folder compressed) Anyone has the command ...
1
vote
3answers
2k views

How do I extract a tarball, skipping some of the leading directories?

I am archiving a folder using following command: tar jcf "home/username/forum/forum.tar.bz2" /var/www/forum/ Then I am extracting using : tar jxf forum.tar.bz2 ./ It extracts correctly, but ...
0
votes
1answer
828 views

tar: Backing up an encrypted /home folder?

After some trial and error, I've managed to backup my Ubuntu 10.04 workstation and it's time for my Laptop. It also runs 10.04, but has an encrypted /home folder. Running the below snippet as root ...
3
votes
1answer
11k views

tar Exiting with failure status due to previous errors

I am trying to backup my Ubuntu workstation by the help of this guide and are running into trouble as the tar command outputs Exiting with failure status due to previous errors. Here's what I ...