Backup of departemental, system group administered servers

The departemental servers (not desktops nor laptops) administered by the system group use Back-up as a service: TSM from the service catalog of the central ICTS.

Backup Principle:

  • User home directories and server directories (e.g. mail, web, ...):

    • are backuped daily
    • different versions are kept for 60 days
    • deleted files are kept for 365 days
    • active files (not deleted) are kept for as long as the backup-license of the server is not re-used (typically 1 to 2 years after the server is decommissioned)

How to restore from backup

  • Previous versions of the backup software allowed to restore your own files from backup yourself - the new version no longer supports this - contact helpdesk to restore your files
  • Old documentation, no longer relevant, here only for archeological purposes - and accessible only from departmental networks

Important Details:

  • directories with name NoCsBack (case is important) are not backupped (including subdirs and files)
    • This is by design and is intended to be used for large data that is too big to be put on backup or that changes too often and thus would put too much load on the backup system
    • If you are worried about privacy or other legal issues and do not want to have some data being backuped, you can of course also use this mechanism to exclude it
  • backups are taken during the night. The exact time depends on the backup service of central ICTS (but is usually between 11PM and 02AM).
  • more information about this departmental backup schedule and how it differs from the standard central ICTS backup schedule (accessible only from departmental networks).

For archeologists the old documentation of the previous backup system is still kept on-line

Backup of your own machine

Do notice that this includes not only your self administered machine, but also system group administered desk- and laptops - all data that you put on the local disk of a desktop or laptop is not backuped by the departmental backup system - any valuables there must be taken care of by whomever they are most valuable for ;-)

To make backup of your own machine there are a number of possibilities.

  • Use a (good) backup tool to make (automatic, scheduled) backups to a (reliable) backup destination - see also the backup overview documentation.

  • Set up a (as automatic as possible) copy of your files to a machine that is included in the departmental backup system:

    • generally not suited for a complete backup of your entire system, but only for specific directories (e.g. My Documents or /home ... )
    • make sure to only copy (and thus backup) what is worth to backup: do not include things that already are being backuped elsewhere:
      • do not sync/backup your local sync-directory of your mail - the mail servers are backuped
      • do not sync/backup your local checkout/work directory of your repositories - the repository servers are backuped
      • do not sync/backup your caches and other temporary files/directories
      • all of the above do take up a lot of space and thus make the sync more time- and space-consuming as needed
    • you could set up your sync to also exclude the same directories/files that are excluded by the backup
      • but on the other hand, having them copied to a server might just give you that extra level of redundancy that comes in handy whenever things go wrong
      • but do remember that server disks aren't unlimited either: they might not go on backup, but they do take up space on the server disks
      • and things you put in your home directory do count for your quota

Sync to Server Examples

Whatever solution you choose, remember to test it from time to time, to see whether it still works as you expect (otherwise you will find it to have missed some important file or directory just after you have deleted it ;-)

Moreover, as described in the backup overview documentation, just sync-ing alone is not a backup solution: you can only treat it as backup if the server you are syncing to, is included in a backup (departmental or elsewhere).

Platform independent solution (but a tad too complex?):

  • syncthing: mirror/sync directories

    Automatic synchronization of directories in the same way as Dropbox et al.

On Microsoft Windows you used to have automatic synchronization to a Samba server (look under Synchronizing Directories):

  • We currently though have no reports of users still using it on recent Windows versions so YMMV
  • Because Microsoft Windows doesn't know about rsync nor ssh, a lot of the suggestions given further below cannot be used. An alternative might be to use robocopy to copy files to a trusted location in an intelligent way (doesn't just copy everything on each run, but only what it deems necessary). An example use of robocopy is shown here - copy this file to your local Windows machine and change the extension from .txt to .bat and set it up to be executed regularly (or don't forget to do so yourself - see also the warning crontab below with cs-rsync-backup).
  • Rumours are that recent Windows 10 does have a complete bash/linux environment on board, including rsync and ssh. If these turn out to work well, a lot of what is described below might just work as well ;-)

The examples below all depend on the availability of both rsync and ssh (so most probably on work as described/expected on MacOS and Linux):

  • cs-rsync-backup: our own wrapper around rsync written in bash

    Copy/mirror your laptop home directory to your departmental home directory ... because your departmental home directory is (most probably ;-) included in the departmental backup schema, this is (almost) just as good as a direct backup.
    Primarily intended to be used on system-group-administered laptops, but might be a good starting point for others as well.
    You can also find an example of a crontab that warns if your backup is too old - definitely worth to check out if you are implementing this kind of sync-to-backup.

  • csbackup: a wrapper around rsync written in bash to sync files to a file server with some nice extra goodies to make life easier

    Copy/mirror directories to a remote system ... so no (older) versions of files and directories, unless the remote system is being backuped.
    Contributed by Yves Frederix ... definitely works on Linux, probably also on MacOS.
    Sources available: /cw/www/cs/system/services/backup/repo/csbackup_1.2ubuntu11.tar.gz

  • rsnapshot / Easy Automated Snapshot-Style Backups with Rsync

    A true backup solution with different versions of backuped files and directories yet as little disk-space needed as possible ... relies on the functionality of hard links, rsync.

Other solutions based on SMB/CIFS copy to Samba server or rsync or unison or ... can probably be found using an Internet Search Engine.
They are probably only as good as your discipline to configure it and (let it) run it as often as needed ... good to know:

  • rsync and unison are able to use ssh to communicate with the remote server to copy to
  • the departmental ssh servers are accessible from anywhere in the world
  • the departmental ssh servers have access to your home directory
  • so in principle this gives you enough building blocks to copy from your local machine to your departmental home directory from anywhere in the world:

    rsync -e ssh -aHv --delete /your/local/directory ssh.cs.kuleuven.be:/home/you/BACKUP

  • you can find an example of a crontab that warns if your backup is too old in the description of cs-rsync-backup above - definitely worth to check out if you are implementing this kind of sync-to-backup