Shell for backup some files/dirs to remote computer
Download scripts archive, extract, enter to extracted directory and run sudo make install
.
Answer correct on the questions. You must set exist paths of remote computer! It's important!
If You choice only updates, You should not adding task for cron on the remote computer.
Else, You can see task string for the remote computer, or you can copy script ./clearbckp.sh to remote computer and add a task for cron.
If You choice full archive:
- Add task
- Restart cron:
systemctl restart cron
Run sudo make uninstall
in source directory.
Скрипт для бекапа файлов/директорий на удалённый комп.
Скачайте и распакуйте архив, перейдите в распакованную папку и выполните команду sudo make install
.
Правильно ответьте на вопросы скрипта. Укажите существующие пути на удалённой машине! Это очень важно!
Если вы выбрали только изменения, не следует добавлять задачу в cron на удалённом компе.
Иначе вы увидите строку для включения в cron на удалённом компе, или можете скопировать ./clearbckp.sh на удалённый комп и добавить задачу с ним.
Если выбрали полный архив:
- Добавьте задачу в cron
- Перезапустите cron:
systemctl restart cron
Выполните sudo make uninstall
в директории с исходниками.