06-03-2009
getting backup of a copy
Hi,
I wrote a script file file1.sh
Mistakenly I have copied some other file contents to this file,
cp a.sh file1.sh
is there any way to recover the original contents of the file1.sh.
plz let me know, otherwise I need to write the logic again.
Thanks in advance.
10 More Discussions You Might Find Interesting
1. SCO
Hi,
I did a terrible mistake of issuing crontab -r command which deleted my table on a new installation. Is there any way i can transfer the table from an existing unix box.
Regards,
Joseph:confused: (4 Replies)
Discussion started by: njoroge
4 Replies
2. Shell Programming and Scripting
I am trying to copy files from one directory to another using shell script. Can anyone please troubleshoot the code.
thanks in advance...
#!C:\Shell\sh.exe
files_dir="C:\Documents and Settings\scripts\files"
backup_dir="C:\Documents and Settings\scripts\ztest"
echo cding to... (2 Replies)
Discussion started by: sureshcisco
2 Replies
3. Shell Programming and Scripting
Basically it's for a work assignment.
Have to make a menu with the following choices
***************menu*********************
1) Show Current Directory
2) Dispaly Current Time and Date
3) Copy
4) Change Password
5) write directory to file
6) Edit File Directory
7) Make backup from... (1 Reply)
Discussion started by: Covax
1 Replies
4. UNIX for Dummies Questions & Answers
I have several files that I need to get off of a backup tape. I'm using AIX 4.3 (I know this is old) and our backups are done using the bru command. I need to copy these files to a specific location, and not restore them to the original location. Can anyone tell me what command I should use to do... (4 Replies)
Discussion started by: troy
4 Replies
5. Shell Programming and Scripting
Hey guys,
I need to know how to locate all .htaccess files on the server and make a backup of them in the folder they reside before I run a script to modify all of them.
So basically taking dir1/.htaccess and copying it as dir1/.htaccess_bk
dir2/.htaccess copying as dir2/.htaccess_bk... (5 Replies)
Discussion started by: boxx
5 Replies
6. Shell Programming and Scripting
Hi Everyone,
we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment?
Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies
7. Shell Programming and Scripting
Hi,
I have many servers distributed on my customer locations all servers has MYSQL database.
I want to backup database for each server on server at my location using scheduler.
So I create Shell script file to backup and copy the database file from customer server to my server as... (3 Replies)
Discussion started by: amsbas
3 Replies
8. Shell Programming and Scripting
HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here
Im explaining the requirement of script.
AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies
9. UNIX for Advanced & Expert Users
Hi All,
I have successfully backup & restore (using tar) one of my Debian Lenny Servers.
On the restore server (standby machine), everytime i have to erase the disk & extract the tar backup.
I want to extract the tar on the running restore server on a directory for e.g /systembackup-01,... (11 Replies)
Discussion started by: coolatt
11 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I have an mksysb backup which consists of 2 Volume, how do I combine it into a single Volume or tape ?
Appreciate it (1 Reply)
Discussion started by: AIXBlueCat
1 Replies