Demo site - cron job: Porovnání verzí
Skočit na navigaci
Skočit na vyhledávání
(Založena nová stránka s textem „Kategorie:Forum webtrees [https://www.webtrees.net/index.php/en/forum/2-open-discussion/32130-solved-demo-tree Demo tree] - navrácení demo stromu do…“) |
|||
Řádek 1: | Řádek 1: | ||
[[Kategorie:Forum webtrees]] | [[Kategorie:Forum webtrees]] | ||
− | [https://www.webtrees.net/index.php/en/forum/2-open-discussion/32130-solved-demo-tree Demo tree] - navrácení demo stromu do původní podoby pomocí cron jobu. Poradil Greg Roach. | + | [https://www.webtrees.net/index.php/en/forum/2-open-discussion/32130-solved-demo-tree Demo tree] - navrácení demo stromu do původní podoby pomocí cron jobu. Poradil Greg Roach: |
+ | |||
+ | On the webtrees demo server, I created two backups: | ||
+ | |||
+ | 1) an export of the database - using mysqldump. | ||
+ | 2) a copy of the media files in the /data folder | ||
+ | |||
+ | I have a "cron" job (a scheduled task) on the server which restores the site from these two backups every night. | ||
+ | |||
+ | rsync -ad --quiet /home/webtrees/webtrees-data.backup/ /home/webtrees/webtrees-data | ||
+ | mysql < /home/webtrees/webtrees.backup.sql | ||
{{Tags}} demo-tree cron | {{Tags}} demo-tree cron |
Aktuální verze z 15. 6. 2017, 22:34
Demo tree - navrácení demo stromu do původní podoby pomocí cron jobu. Poradil Greg Roach:
On the webtrees demo server, I created two backups:
1) an export of the database - using mysqldump. 2) a copy of the media files in the /data folder
I have a "cron" job (a scheduled task) on the server which restores the site from these two backups every night.
rsync -ad --quiet /home/webtrees/webtrees-data.backup/ /home/webtrees/webtrees-data mysql < /home/webtrees/webtrees.backup.sql
Štítky: demo-tree cron