Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
doku:backup [2021/09/29 09:31] – [Backup] goldenberg | doku:backup [2024/08/01 11:59] (current) – [Backup] goldenberg | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Backup====== | ======Backup====== | ||
+ | User Data on VSC is only backed up for desaster recovery (such as a fire or complete hardware failure). Individual resores are not possible. | ||
+ | Due to the size of our volumes, some data may not make it into the backup. | ||
- | User Data on VSC is not backuped. | + | {{: |
**Backup is solely the responsibility of each user.** | **Backup is solely the responsibility of each user.** | ||
- | + | Disk Pools are used on the storage | |
- | RAID-5 or RAID-6 is used on NFS and BeeGFS servers and Disk Pools on the GPFS servers to protect against single disk failure. | + | Up to several |
- | Up to one (RAID-5) or two (RAID-6) or more (Disk Pool) disks failing concurrently can be sustained. | + | |
Other failure modes like disk controller failure or filesystem software faults are very seldom but might lead to loss of data. | Other failure modes like disk controller failure or filesystem software faults are very seldom but might lead to loss of data. | ||
+ | ======Continuous Backup of User Data to Local Machines===== | ||
- | ======Continous Backup of user Data to remote Machines===== | + | To set up a continuous backup from VSC to your local machine, follow these steps: |
- | A continuous backup from VSC has to circumvent the entering of the OTP numbers. If it its possible to keep a ssh session alive for a longer time, it can be used to create a tunnel for connecting to a rsync daemon. | + | **Download and Configure |
- | Do the following steps: | + | On your local machine, download |
- | - on the remote | + | |
- | wget https:// | + | < |
- | bash rsyncd_setup_remote.sh | + | [...]$ |
</ | </ | ||
- | - On the local machine, also download a script, it will compile the commands for creating the ssh tunnel and using the rsync:< | + | |
- | wget https:// | + | Make the script |
- | bash rsyncd_setup_local.sh | + | < |
+ | [...]$ chmod +x backupvsc.sh | ||
</ | </ | ||
- | - start the rsync daemon with the ' | + | |
- | rsync --daemon --config=/ | + | Run the script for the first time to configure |
+ | < | ||
+ | [...]$ ./backupvsc.sh | ||
</ | </ | ||
- | - open the ssh tunnel ' | ||
- | - do the ' | ||
+ | You will be prompted to enter: | ||
+ | *Remote username | ||
+ | *Remote host (e.g., `vsc5.vsc.ac.at`) | ||
+ | *Path to the remote directory to back up | ||
+ | *Path to the local backup directory | ||
+ | These details will be saved in a configuration file at `~/ | ||
+ | The script will also add useful aliases to your `.bashrc` file: | ||
+ | *`backupvsc`: | ||
+ | *`addbackupfolder`: | ||
+ | *`removebackupfolder`: | ||
+ | |||
+ | To activate these aliases, run: | ||
+ | < | ||
+ | [...]$ source ~/.bashrc | ||
+ | </ | ||
+ | |||
+ | **Running the Backup** | ||
+ | |||
+ | To run the backup process, use the alias: | ||
+ | < | ||
+ | [...]$ backupvsc | ||
+ | </ | ||
+ | This will start the backup process, copying the specified remote directory and any additional folders to your local backup directory. | ||
+ | |||
+ | **Adding a Folder to the Backup** | ||
+ | |||
+ | To add an additional folder to the backup list, use the alias: | ||
+ | < | ||
+ | [...]$ addbackupfolder | ||
+ | </ | ||
+ | You will be prompted to enter the path to the additional remote folder. This folder will be included in subsequent backups. | ||
+ | |||
+ | **Removing a Folder from the Backup** | ||
+ | |||
+ | To remove a folder from the backup list, use the alias: | ||
+ | < | ||
+ | [...]$ removebackupfolder | ||
+ | </ | ||
+ | You will be prompted to enter the path to the remote folder you wish to remove from the backup list. |