
Код: Выделить всё
[root@server66 ~]# ./backres.sh all
---------------------=== The back-res script by go0ogl3 ===---------------------
The backup part requires some configuration in the header of the script
and it's supposed to be run from cron.
The restore part it's supposed to be run from command line.
restore part Usage:
backres.sh [type-of-restore] [dir|db] [YYYY-MM-DD] [path]
backres.sh dir [dir-to-restore] [to-date] [path]
backres.sh dir all [to-date] [path]
backres.sh db [db-to-restore] [to-date]
backres.sh db all [to-date]
Where 'dir' or 'db' to restore is one of the configured dirs or db's to
backup, or 'all' to restore all dirs or db's.
Date format is full date, year sorted, YYYY-MM-DD, like 2009-01-30.
'path' is for dirs and is the path on which you want to extract the backup.
If the path to extract is not set, then the backup is extracted on /.
For more info read the header of this script!
-===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===-
Делаю опрос. Если народ будет заинтересован, то будущий скрипт я вижу в двух вариантах: как дополнение к скрипту установки панели ISPConfig 3 и самостоятельное решение.
Пока будете думать да голосовать, буду писать интерфейс и выкладывать сюда эскизы.
Ссылка на первоисточник:
Ссылка на тему в форуме ISPConfig 3: