Howto / Ubuntu
Schedulare un backup giornaliero della www root e dei database
Author: Tafaz
Visits: 1590
Date: 22.06.2007
installare dvd+rw-tools che permettono di masterizzare dvd
$ sudo apt-get install dvd+rw-tools
creiamo un file di conf per ruotare i backup che verrà richiamato da logrotate
$ sudo vim /var/backup/rotate_backup
# packages drop log rotation information into this directory
include /etc/logrotate.d
/var/backup/www.tar.gz{
create 0644 root root
daily #i file verranno ruotati giornalmente
rotate 7 #ruotiamo per 7 giorni (= 1 settimana di backup)
missingok
notifempty # se il file è vuoto non lo ruotiamo
}
/var/backup/DbDump.sql.gz{
create 0644 root root
daily
rotate 7
missingok
notifempty
}
Author: Tafaz
Visits: 1590
Date: 22.06.2007
$ sudo apt-get install dvd+rw-tools
creiamo un file di conf per ruotare i backup che verrà richiamato da logrotate
$ sudo vim /var/backup/rotate_backup
# packages drop log rotation information into this directory
include /etc/logrotate.d
/var/backup/www.tar.gz{
create 0644 root root
daily #i file verranno ruotati giornalmente
rotate 7 #ruotiamo per 7 giorni (= 1 settimana di backup)
missingok
notifempty # se il file è vuoto non lo ruotiamo
}
/var/backup/DbDump.sql.gz{
create 0644 root root
daily
rotate 7
missingok
notifempty
}
Page 1 of 2
>>
Se vuoi discutere con noi su questo articolo o comunque vuoi porci delle domande usa il nostro Forum

