Tutorial: How to Perform Backups and Crontab Scheduling on Linux and Unix

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024

Комментарии • 15

  • @user-zt2du3id9o
    @user-zt2du3id9o 2 месяца назад +1

    Excellent explanation! Thanks a lot!

  • @MrGetstarted100
    @MrGetstarted100 3 года назад +2

    very well explained! i was stuck with my uni homework in daily backup but really helpful video. Thank you so much for this video.

  • @kavisiliat
    @kavisiliat 2 года назад +1

    This was a very easy to follow and helpful tutorial. Thank you.

  • @bqmstech
    @bqmstech 10 месяцев назад +1

    thnaks you sir its very amazing session

  • @subkhaliq
    @subkhaliq 3 года назад +2

    Thank you so much for this video. The republic of china will forever be in your favour.

    • @TheExpatProfessor
      @TheExpatProfessor  3 года назад

      I appreciate that. I'm always happy to gain support.

  • @goldenmean8111
    @goldenmean8111 2 года назад +1

    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!

    • @TheExpatProfessor
      @TheExpatProfessor  2 года назад +1

      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.

  • @riadhossainbhuiyan4978
    @riadhossainbhuiyan4978 3 года назад +2

    Hello Sir thanks for this great video. Can you please make a video on rsync for linux backup on remote storage

    • @TheExpatProfessor
      @TheExpatProfessor  3 года назад +1

      Thank you for your kind note. Absolutely, I'll be glad to create a quick demo of rsync.

    • @TheExpatProfessor
      @TheExpatProfessor  3 года назад +1

      ruclips.net/video/Lv5W-fv7U_0/видео.html

  • @itismadebymonkey
    @itismadebymonkey 2 года назад +1

    Thank you!

  • @shambhuprasad162
    @shambhuprasad162 2 года назад +1

    I am getting error
    tar: +%Y%m%d.%H%M.tar.gz: cannot stat: no such file or directory
    please help whats the issue

    • @TheExpatProfessor
      @TheExpatProfessor  2 года назад

      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!