What is recommended admin / backup script location?

Polytropon freebsd at edvax.de
Fri May 30 02:52:42 UTC 2014


On Thu, 29 May 2014 19:12:39 -0700, Sergei G wrote:
> What would be an appropriate location for backup and other admin level 
> scripts?

The system automatically backups some files to /var/backups.
See "man hier" for details.



> I assume cron will be used to schedule execution of backup script, 
> unless there is a better solution.

The scripts 200.backup-passwd, 210.backup-aliases and 220.backup-pkgdb
in /etc/periodic/daily will perform such tasks. You could add your
own scripts and also add a custom location for backups, for example
an external or networked drive. Those scripts would probably be go
to the /usr/local/etc/periodic subtree, or /opt/periodic, if you
want to employ and (ab)use a Solaris-ism. :-)




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list