We want to back up the entire contents of the directory /www every day. We want to have some backup. However, we do not want the backup folder amassed new files.
Write a function ShaveFolder, which retains any folder n recent files. The function will be configurable. The first parameter is the folder where we want to perform shave. The second parameter is the number of recent files that remain in the folder.
Write a script backup-web.sh, that:
We prepared for you video course Marian's BASH Video Training: Mastering Unix Shell, if you would like to get much more information.
Thank you. Marian Knezek