1

help with tar & zip only last months(say,Sep) files

view story
linux-howto

http://www.unix.com – Need to 1. archive all the files in a directory from the previous month into a tar/gz file, ignoring all already archived 'tar.gz' files 2. Check created .tar.gz file isnt corrupted and has all the required files in it. and then remove the original files. I am using a function to get the last month name from the current sys date. After getting just the last months files, I have tried passing complete pathname/filename to tar, just the filename to tar and output of ls -l to tar but none works... I am getting one or other error in the tar step and cant get the syntax right... Please help Qu (HowTos)