The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Getting a list of files on an ftp, via shell script... Elric of Grans Shell Programming and Scripting 1 01-13-2009 06:10 AM
Pulling a list of files from FTP site in a shell script spatra Shell Programming and Scripting 0 08-28-2008 08:03 AM
Create a list of files that were modified after a given date. rkka UNIX for Dummies Questions & Answers 4 01-22-2008 05:12 AM
korn shell + sftp + list files alienET Shell Programming and Scripting 1 03-24-2005 11:12 AM
How To create Flat Files using Unix Shell Script? Aparna_k82 Shell Programming and Scripting 4 02-10-2005 05:49 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 01-21-2009
mirfan mirfan is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 11
Shell Script Create List of Deleted Files

Hi,

I want to put all the deleted files in a txt file. Because i want to backup my image server which has thousands of jpg images. I wrote a shell script which will copies images from image server to backup image server. I setup a cronjob which runs on every five minutes. & through timestamp it tooks last five minutes jpg images and copies to Backup Image Server.

Now the problem is that when any image (jpg) deleted from Original Image Server how can i took this to also delete that image from Backup Image Server.

So, in order to meet that i believe i will put all the deleted jpg names (file names) into a text file and use that file to delete images from Backup image server.

So, can any one please let me know the commands how can i put deleted *.jpg files into text file so i can this on Backup image server to delete images.

Or let me know any other solution ?

Regards,
Muhammad Irfan
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0