Hi
I have got a simple script that moves files from one folder to another, but would like to add some extra functions to the script.
Firstly i would like to add a file stable check. We can copy large files to the source directory and i want to ensure the copy has finished before its moved to backup directory.
Next i would like to add either ssh or ftp so the backup directory could be on a remote server
#!/bin/sh
SOURCE_DIR=/prod2/SHARED/Enfocus_Pitstop/Twist_Certified_Magazine/Passed/
BACKUP_DIR=/symlnks/io/jobs/workflows/TAG-466/Certified_Passed_Error/
cd $SOURCE_DIR
mv -f * $BACKUP_DIR/
thanks in advance
Treds