hi all..
i have a huge directory with many subfolders and many files in each folder ..
i usually back up the directory each week .. usually it is a full back up ...
offcourse i add some files or even subfolders in this main folder during the week ... and i would like to KNOW the NEW files that have been added each time i do the backup ..
well .. i made this small script :
tar -czvf backup.tar.gz MainFolder/ > temp.txt
this script will simply show whatever was displayed on the screen in a file called temp.txt ...
the next time i do a run this script .. it will generate a new file called temp.txt .. ofcourse i would take a copy of the first temp.txt or change its name so it wont overwrite it.
now we have two temp files that have some difference in them ..
to know the difference .. we run the diff command ... this is known
the problem is that the diff command will result i having a big file that has all these:
>>
<<
>>
<<
things on it ... and for huge files ... this won't be a practical way of knowing the new files
my questions is .. is there any way to have a txt file that sows clearly what new files are added? or deleted?
when i say clearly i mean .. no >> or << .. .only lines of the number of new files added or deleted ...
thanks in advance