Hello. Thank you very much. Its an excellent video. Can you please show us how to keep having always 7 backups only? I mean the a way to automatically delete the 1rst backup before write the 8th backup. Again thank you!
I just found this message! I'm sorry about the delay. To automatically rotate backups, or any repetitive file, use logrotate. Type man logrotate and/or man logrotate.conf. This utility is built-in to Linux and provides outstanding file rotation options. You can even scp or rsync your files to a remote host within a script within the logrotate configuration file.
Hello! Be sure that you are 1) defining the variable in your script and 2) using the "back-tick/grave mark" not the "single quote" when addressing an executable function. The grave-mark is the same key as ~ , while pressing SHIFT A quick scripting rule: ' = do not interpret variables between the ' and ' " = interpret variables between " and " ` = run whatever is between ` and ` as a command Example: echo '$SHELL' echo "$SHELL" echo `$SHELL` (you'll need to exit this one after you run it, as it opens a new shell) (It looks like the problem is that your script is using a single-quotes instead of grave-marks.) I hope that this helps!
very well explained! i was stuck with my uni homework in daily backup but really helpful video. Thank you so much for this video.
I'm so glad that this helped!
Excellent explanation! Thanks a lot!
thnaks you sir its very amazing session
This was a very easy to follow and helpful tutorial. Thank you.
Thank you so much for this video. The republic of china will forever be in your favour.
I appreciate that. I'm always happy to gain support.
Hello Sir thanks for this great video. Can you please make a video on rsync for linux backup on remote storage
Thank you for your kind note. Absolutely, I'll be glad to create a quick demo of rsync.
ruclips.net/video/Lv5W-fv7U_0/видео.html
Thank you!
Hello. Thank you very much. Its an excellent video. Can you please show us how to keep having always 7 backups only? I mean the a way to automatically delete the 1rst backup before write the 8th backup. Again thank you!
I just found this message! I'm sorry about the delay. To automatically rotate backups, or any repetitive file, use logrotate. Type man logrotate and/or man logrotate.conf. This utility is built-in to Linux and provides outstanding file rotation options. You can even scp or rsync your files to a remote host within a script within the logrotate configuration file.
I am getting error
tar: +%Y%m%d.%H%M.tar.gz: cannot stat: no such file or directory
please help whats the issue
Hello! Be sure that you are 1) defining the variable in your script and 2) using the "back-tick/grave mark" not the "single quote" when addressing an executable function. The grave-mark is the same key as ~ , while pressing SHIFT
A quick scripting rule:
' = do not interpret variables between the ' and '
" = interpret variables between " and "
` = run whatever is between ` and ` as a command
Example:
echo '$SHELL'
echo "$SHELL"
echo `$SHELL` (you'll need to exit this one after you run it, as it opens a new shell)
(It looks like the problem is that your script is using a single-quotes instead of grave-marks.)
I hope that this helps!