How can i schedule the "System Backup" plugin to perform regular backups and to retain a number of copies pls?
Is there a script to do this via Anacron plugin?
System Backup Plugin - Anacon Script
-
- OMV 1.0
- gwaitsi
-
-
Just enter the command: omv-mkconf backup backup
-
Volker should think about this: Discussion: "Jobs" + "Scheduled Jobs" separated
ZitatHow about separating creating jobs and managing the schedules for them?
Then you an add Jobs from different Plugins and then schedules it with
"Schedule". For selecting the Job we can use a dropdown. Much like it's
on the hard drive: Creating Shared Folders in and then select the
Services.You would need a new section:
Jobs: manages all jobs, whether rsync backup, backup or eg mysql-backup (<- from a plugin)
Schedule manages the execution of the jobs, whether by cron, anacron or manually -
-
OK. so i am using the below script in anacron to perform a weekly backup of the system.
Bash
Alles anzeigen#!/bin/bash backup_path="/media/854fe912-9f08-423d-9bc8-26a404cae6d0/omvbackup" backup_store="/media/854fe912-9f08-423d-9bc8-26a404cae6d0/nas_omvbackup" date=$(date +"%d-%b-%Y") echo "Performing full system backup..." omv-mkconf backup backup echo "Compress system backup..." tar -czvf $backup_store/nas_omvbackup-$date.tar.gz $backup_path/ chmod 600 $backup_store/nas_omvbackup-$date.tar.gz # Delete files older than 30 days echo "Removing obsolete files..." find $backup_store/* -mtime +30 -exec rm {} \; echo "Done."
I have a bunch of directories i.e. home defined in the USB Backup plugin, how can i trigger by USB Backups via anacron to perform daily backups if the external drive hasn't been disconnected?
-
I have files named
nas_omvbackup-23-Oct-2014.tar.gzi renamed to nas_omvbackup-23-Jan-2014.tar.gz to test the below cleanup function but it doesn't delete them.
find $backup_store/* -mtime +30 -exec rm {} \;what is wrong with the above line pls?
also, the user home directories and a couple of others, i have configured via the USB Backup plugin, but i would like to trigger a daily backup on the basis the USB drive has not been unplugged. What is the command line for trigger the USB Backups pls?
-
Just enter the command: omv-mkconf backup backup
ryecoaaron, how can i test if the drive is indeed connected before running the job, so to reduce the error emails from when the drive is not connected
-
-
I have files named
nas_omvbackup-23-Oct-2014.tar.gzi renamed to nas_omvbackup-23-Jan-2014.tar.gz to test the below cleanup function but it doesn't delete them.
find $backup_store/* -mtime +30 -exec rm {} \;what is wrong with the above line pls?
"find" checks for the file creation date, not the filename. Your filecreation date doesn't change so no deletion
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!