Answer the question
In order to leave comments, you need to log in
How to set up autoarchiving in webarchive?
How to set up autosave of a page in the webarchive?
Answer the question
In order to leave comments, you need to log in
Write a bash script and add its scheduled execution to crontab
Something like this
#!/bin/bash
# Делаем бэкап сайта
tar -czf /путь_до_папки/backup/filename.tar.gz /путь_до_корня/сайт
# Делаем бэкап БД
mysqldump --opt -u user -p password --all-databases | gzip -c -9 > /путь_до_папки/backup/filename.gz
30 2 * * * /usr/bin/perl /путь_до_папки_где_сохранили_скрипт/backup.sh
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question