Skip to Main Content
Pragmatic Guide to Subversion
book

Pragmatic Guide to Subversion

by Mike Mason
November 2010
Intermediate to advanced content levelIntermediate to advanced
150 pages
2h 55m
English
Pragmatic Bookshelf
Content preview from Pragmatic Guide to Subversion
40Performing Incremental Daily Backups

Building on the full backup script in the previous task, daily-backup.pl performs an incremental backup. You should run this incremental backup script at least daily, but you might run it more often if you’re extra paranoid.

The script loads the last_backed_up file created by the full backup, checks to see whether there are any new revisions in the repository, and backs up just those new revisions. If there have been no check-ins since the last full backup, the script exits early and doesn’t create an incremental backup. The script saves the last-backed-up revision back into last_backed_up so that future incremental backups work correctly too.

Running the script produces output such as the following: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick

Publisher Resources

ISBN: 9781680500035Errata Page