06-18-2012
to make it more specific, I created a directory called /backups it has a subdirectories named after each user. (user1, user2, user3). Now, each users will copy all their files that they need to backup on their respected folders. How can I automatically split and tar the files even if without knowing the name of the file?
I'm getting the point of your input. but I'm in need of a script which can automatically do the split and tar things. I know cron will do the automated job. My biggest problem is the script itself.
Sorry for being noob here and I hope you'll understand my situation.
Thank you,
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have some file in /users/xyz directoty with .tar.gz extension. i need to find these files and if found in need to run other commands. I now the command for finding files,but how to put if condition ?please help me
Thanks (3 Replies)
Discussion started by: bmkreddy
3 Replies
2. Shell Programming and Scripting
I'm specifically trying to find help or insight on using the --incremental ('-G') option for creating a tar. Please resist the urge to tell me to use --listed-incremental ('-g') option. That's fairly well documented in the GNU tar manual. GNU tar 1.19
This is what the manual does say in section... (0 Replies)
Discussion started by: protienplant
0 Replies
3. Shell Programming and Scripting
I had an idea of very-very easy bacup script that packs ALL of the files in current dir (including the subfulders and with spaces in name), packs them with tar+gz and moves to a directory. I'm using Cywin under WinXP.
But I have a problem with tar. When I do in a single line
"tar -rf... (2 Replies)
Discussion started by: TennageWerewolf
2 Replies
4. UNIX for Advanced & Expert Users
I'm trying to do a incremental backup for a big NFS. Since space is not an issue, I don't want to compress them or end up with a big tarball for full backup( and a series of small tarballs for incremental backup). Basically I want the TAR backup/restore functionality but not TAR files up.... (3 Replies)
Discussion started by: overmindxp
3 Replies
5. Shell Programming and Scripting
I have written a shell script to perform backups using tar, rsync and optionally utilise lvm snapshots. The script is not finished but is in a working state and comments/descriptions are poor.
I would greatly appreciate any criticism and suggestions of the script to help improve my own learning... (0 Replies)
Discussion started by: jelloir
0 Replies
6. Shell Programming and Scripting
Hello,
Recently, I've started with shell scripting, and decided to write a script for my system backup using tar. When I was dealing with tar execution inside shell script I found this, inside shell we have the following code:
tar $TAR_PARAMS $ARCHIVE_FILE $EXCLUDE $BACKUP_STARTwith... (6 Replies)
Discussion started by: ilnar
6 Replies
7. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
8. Shell Programming and Scripting
Hi,
I need backup all the files(including sub directories files ) which we modified today and create the tar file with the filename_<current_date>.tar
Thanks (1 Reply)
Discussion started by: gavemani
1 Replies
9. UNIX for Dummies Questions & Answers
I have a huge directoy(200+ gb) for backup. I want upload the tar file(split files) simultaneous to a remote ftp. (pipeline, stdout, stdin etc.)
I don't want write a data to local hdd. I have a ssd hdd. thanks.
this code doesn't work.( yes i know the problem is split command!)
tar cvzf -... (8 Replies)
Discussion started by: tara123
8 Replies
10. Shell Programming and Scripting
Hi all,
I have to write a script which will keep for a particular user (username is first argument) backups of the account area to another.
The script should accept as the second argument is a directory (or file), create one by storing a copy of the argument (using tar) and copies it to the list... (0 Replies)
Discussion started by: peter20
0 Replies