Backups: Difference between revisions

From CSCWiki
Jump to navigation Jump to search
Content deleted Content added
Jbroman (talk | contribs)
links, removed ZFS stuff, changed "I" to refer to dtbartle, the page's original author
S23adhik (talk | contribs)
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
We take [[LDAP]] and [[Kerberos]] backups twice daily. Backups on auth1 occur at 4am and on auth2 they occur at 4pm. On each machine, backups are stored in /backup/{ldap,krb5} (in the case of auth1, this is /backup exported from the [[NetApp]]).
All backup scripts should be managed by [[puppet]].


Miscellaneous backups (including backups of home directories for expired accounts) are stored in /users/backup (accessible on any system that NFS-mounts [[User-data|/users]]).
We take nightly [[Kerberos]] and [[LDAP]] backups. The backups are stored in /var/backups/krb5 and /var/backups/slapd respectively.


== /users Backup ==
dtbartle planned to take weekly (or possibly nightly) backups of all MySQL and PostgreSQL databases. (Did this ever get implemented?)
/users primary is held on ranch, whilst it's backup is held on tequila via incremental zfs snapshots

On Tequila I made a dedicated destination dataset called backup/csc0_backups (backups is a big pool);

zfs create backup/csc0_backups

Then on ranch I ran a snapshot, and sent it over;

zfs snapshot -r csc0@base

zfs send -R csc0@base | ssh root@tequila zfs recv -F backup/csc0_backups

In the future we need to setup incremental sends on ranch

zfs snapshot -r csc0@snap_$(date +%Y%m%d)

zfs send -R -i csc0@base csc0@snap_$(date +%Y%m%d) | ssh root@tequila zfs recv -F backup/csc0_backups

== MySQL ==

We don't currently backup MySQL. See the historical version of this page for previous backup strategy.

[[Category:Software]]

Latest revision as of 23:40, 23 August 2026

We take LDAP and Kerberos backups twice daily. Backups on auth1 occur at 4am and on auth2 they occur at 4pm. On each machine, backups are stored in /backup/{ldap,krb5} (in the case of auth1, this is /backup exported from the NetApp).

Miscellaneous backups (including backups of home directories for expired accounts) are stored in /users/backup (accessible on any system that NFS-mounts /users).

/users Backup

/users primary is held on ranch, whilst it's backup is held on tequila via incremental zfs snapshots

On Tequila I made a dedicated destination dataset called backup/csc0_backups (backups is a big pool);

zfs create backup/csc0_backups

Then on ranch I ran a snapshot, and sent it over;

zfs snapshot -r csc0@base

zfs send -R csc0@base | ssh root@tequila zfs recv -F backup/csc0_backups

In the future we need to setup incremental sends on ranch

zfs snapshot -r csc0@snap_$(date +%Y%m%d)

zfs send -R -i csc0@base csc0@snap_$(date +%Y%m%d) | ssh root@tequila zfs recv -F backup/csc0_backups

MySQL

We don't currently backup MySQL. See the historical version of this page for previous backup strategy.