K
K
Kirill Zhilyaev2016-12-03 23:55:56
Computer networks
Kirill Zhilyaev, 2016-12-03 23:55:56

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

1 answer(s)
P
ProjectSoft, 2016-12-04
@kirill_782

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

Cron Quest
Every day at 2:30
30 2 * * * /usr/bin/perl /путь_до_папки_где_сохранили_скрипт/backup.sh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question