1
vote
1answer
46 views

BASH script for extracting archives - how to make the script ask for folder destination?

I've started using the bash script below, for unpacking archives. How would I go about making the script ask if I would like to specify a folder, or just use the default folder to extract to? I'd ...
0
votes
1answer
64 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 ...
3
votes
4answers
234 views

How to tar the n most recent files with spaces in filename?

I am trying to create a script that foreach directoy in the folder folder, only the n most recent files are to be compressed. However, I am having trouble with the multiple word files. I need a way ...
0
votes
2answers
159 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
374 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 ...
4
votes
2answers
2k views

How to make a bash script generate a new filename every time it's run?

I'd like to make a .tar file of a particular directory every day of the week. The way I'd like to do it is with a bash script making a tar file every day with crontab. I was wondering, is there a ...
1
vote
1answer
2k views

automate transfer of tar files over FTP

Every day I have a script making .tar files of aparticualr directory. Once every day, I would like to transfere the new tar file made that day to a remote server over FTP. I would like to make this ...
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
1k views

How can I prevent two shell scripts running at the same time?

I have a tar backup script that runs once a month. It runs at night through cron. I also have a power schedule that reboots the server at 4.15 every night. The problem is that the server reboots ...
3
votes
1answer
256 views

Removing a tree

CODE EDIT So now that I'm off work I can do a little coding in my free time. The way that I think I want this to work is take a tarball (what I would normally extract to a folder anyway) and compare ...
1
vote
1answer
13k views

tar -cvfz command results in error message unless I omit the hyphen before 'cvfz' [duplicate]

Possible Duplicate: sudo tar cvpzf exiting with failure due to previous error When I run the command tar -cvfz backup.tar.gz somedirectory I get the following sterr tar: Exiting with ...
8
votes
2answers
28k views

Compress in .tgz

I want to compress files in .tgz. I know how to make tar.gz(with tar and gzip) and some people say it is almost the same, but I need to make a .tgz, how??