10 More Discussions You Might Find Interesting
1. AIX
Hello,
Server A: /directory1/
Server B: /Backups/
i wanted to backup contents of /directory1 from "server A" on to "Server B" every 1 hour.
If there is any change in (only new/differences) contents on serverA (directory1/) supposed to be backeup on next run.
I did used rsync command to... (5 Replies)
Discussion started by: System Admin 77
5 Replies
2. Shell Programming and Scripting
Our Apache log files are written to a location on the server that we as clients have no access. Don't ask.
Every month, I have to e-mail the administrator to have him manually copy our Apache log files to a directory in our file space. You can probably guess how efficient it is to do things this... (3 Replies)
Discussion started by: gregraven
3 Replies
3. Shell Programming and Scripting
Hi
I have the following script to copy files from one directory to another:
#!/bin/sh
touch -mt 201304240000 /var/tmp/ref1
touch -mt 201305152359 /var/tmp/ref2
find /moneta_collected02/in_psl -type f \( -newer /var/tmp/ref1 -a ! -newer /var/tmp/ref2 \) > file_lst
cp -pr $(< file_lst)... (6 Replies)
Discussion started by: fretagi
6 Replies
4. Shell Programming and Scripting
How to copy files from one directory to another directory with the subfolders copied.
If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*.
I do not want to create sub folders in folder2.
Can copy command create them automatically?
I tried cp -a and cp -R but did... (4 Replies)
Discussion started by: santosh2626
4 Replies
5. Shell Programming and Scripting
Hi,
I am using solari 10 OS which is having bash shell.
I need a shell script which takes user home directory and name of the file or directory as a input and based on that copy the files accordingly to the other directory.
example:I hava a machine1 which is having some files in a... (8 Replies)
Discussion started by: muraliinfy04
8 Replies
6. 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
7. Shell Programming and Scripting
Hi all, I'm looking for a script to poll a specified directory and copy new files to another location.
The script should only copy new files so, I based on mtime I guess?
Can anyone point me in the right direction of a script which could do this?
My scripting skills aren't too bad, but... (1 Reply)
Discussion started by: JayC89
1 Replies
8. 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
9. Shell Programming and Scripting
I tried to copy data from one location to multiple location my typing...
cp <source> <dest> <dest>
however this will omits one of the destination ... and proceed to copy to only one directory (2 Replies)
Discussion started by: dplate07
2 Replies
10. Shell Programming and Scripting
Hi All,
I am new to UNIX. I will be thankful if some one helps me.
I have to write a shell script for one of the requirement.
I have files created from Jan 2006 to March 2008.
My requirement is to write a script in such a way that
1) To find and copy(not Moving) the files created in the... (2 Replies)
Discussion started by: manas6
2 Replies