How do you a copy a file from one directory to another and make the system automatically generate an extension or filename (when in the target directory) that equates to the date it was copied. Date format example: file.20010917 or/and 20010917.
Ifoata is assuming that the reason for the rename is to allow undeletes. Therefore, alias rm to move the file rather than to actually delete it. At some point, you would then need to do a clean up where the old files are actually deleted. I don't have any idea why Helfenmir is trying to do the rename, but it would make sense that if it is to replace rm, the date could be used to have a cron job periodically remove files older than x days old.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.