Shell Script Create List of Deleted Files


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Shell Script Create List of Deleted Files
# 8  
Old 01-22-2009
What backup scheme are you using? Is it within the LAN or an offsite backup? If I were you, I would discard my current backup process and go with rysnc. It will automate the process of deleting files deleted from the source machine.
# 9  
Old 01-22-2009
Thanks for suggestion yongitz.

I also first decided to go with rsync. But one of senior collegue having trouble with that in past. Because our image server has thousands of listing in image directory and beneath.

So he is saying rsync will first do ls -la in directory and then compare with backup image server in the same directory. So doing this comparison it eats lots of I/O & increases server load rapidly as result of ls -la yields thousands of listings. By the way i didn't try rsync anyhow.

So that is one of the problem i didn't go with rsync.

Are you agree that rysnc creates prolbems in our scenario ?

Is their any other way ?

Or can you let me know the advantages & Disadvantages of rsync ?

Our structure is

root@linux/images } ls -la
root@linux/images } 1/ --> 12/ --> 123 --> having 20,000 listing jpg's
root@linux/images } 2/ --> 21/ --> 211 --> having 25,000 listing jpg's
root@linux/images } 3/ --> 31/ ---> 311 --> having 30,000 listing jpg's
root@linux/images } continue ...
root@linux/images } continue ...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create a list of files from alias by script

Actually I have many pictures with diferent name and size around 2000, I need generate a copy of them from one list of alias. The structure of the list is something like this: alias_list.txt <01>randomname.png<02> Randomname.png RandoMname.png RandOmname.png RandomnamE.png... (6 Replies)
Discussion started by: Tapiocapioca
6 Replies

2. UNIX for Beginners Questions & Answers

List Files being deleted in a shell script

Good evening, i need your help please I've got a file script thet deletes about half millions of files, and i want those files to be printed in a log file as an evidence those files were removed. #/bin/sh rm "/home/e-smith/files/users/bill/Maildir/cur/1392373930.28512.comp01:2,S" rm... (6 Replies)
Discussion started by: alexcol
6 Replies

3. UNIX for Advanced & Expert Users

How to list deleted files in UNIX?

Hi All, Its an interview question. I just want to know the answer of below question. 1) How to list deleted files in unix (13 Replies)
Discussion started by: pspriyanka
13 Replies

4. Shell Programming and Scripting

How to create or convert to pdf files from csv files using shell script?

Hi, Can anyone help me how to convert a .csv file to a .pdf file using shell script Thanks (2 Replies)
Discussion started by: ssk250
2 Replies

5. UNIX for Dummies Questions & Answers

Generate list of deleted files

I copied all JPEGs from my laptop to an external drive using find . -name "*.jpg" -exec cp '{}' ./media/Backup/pictures \; And then deleted all of them from my laptop. Now, I realize that I need the folder path of all the original JPEGs as the path has the important information. I dont... (1 Reply)
Discussion started by: eshwaconsulting
1 Replies

6. Shell Programming and Scripting

To Create shell script files from a shell script

Dear Unix and Linux users, Good evening to all. I'm new to this community and thank you for having an wonderful forum. Dear members i had to create almost some 300 shell script files for a particular task. I tried something like this.... #!usr/bin/sh fname=epdb_jobs for x in `cat $fname`... (3 Replies)
Discussion started by: NehaB
3 Replies

7. Shell Programming and Scripting

how to create the files dynamically in c shell script

how can i CREATE a txt file dynamically in c shell: for instance: #! /bin/csh for each i (*) cat>file$i.txt for each j do .... (1 Reply)
Discussion started by: jdsignature88
1 Replies

8. UNIX for Dummies Questions & Answers

Create a shell script for write files with 2 parameters

Hello, I'm a newbie in shell script. So, i would like to create a shell script which take 2 IN parameters (PARAM1 and PARAM2). This script need to create 2 files as : I need to create this file /etc/apache2/sites-available/PARAM2 : <VirtualHost *:80> DocumentRoot "/home/PARAM1/www"... (0 Replies)
Discussion started by: chatlumo
0 Replies

9. Shell Programming and Scripting

How To create Flat Files using Unix Shell Script?

Hi all, How to create Flat Files using Unix Shell Script. The Script is supposed to be sheduled to run at a particular time? Thanks in advance Appu (4 Replies)
Discussion started by: Aparna_k82
4 Replies
Login or Register to Ask a Question