backup:laptops
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
backup:laptops [2009/08/27 15:53] – cangiani | backup:laptops [2021/03/10 12:43] – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Backup of Laptops ====== | ====== Backup of Laptops ====== | ||
- | Laptops | + | |
- | The files on a laptop are much more in danger than those on a workstation or on a file server: the laptop HardDisk is smaller | + | ===== EPFL Backup System for Laptop ==== |
- | Nevertheless, | + | |
- | As Laptops | + | ** All Employee of EPFL are required to do regular backups |
+ | For this reason EPFL provide | ||
+ | to get your Druva InSync account, please contact your system administrator, | ||
+ | |||
+ | ===== Personal | ||
+ | |||
+ | The lab doesn' | ||
+ | |||
+ | - Homedir: | ||
+ | - Scratch server: The scratch server provide space for everyone | ||
+ | - google disk/ | ||
===== Syncronizing work stuff with Unison ===== | ===== Syncronizing work stuff with Unison ===== | ||
- | [[http:// | + | [[http:// |
- | Note that, although very convenient, **Unison is not a real backup tool**: it does not keep an history of files, and it tends to replicate mistakes instead of repearing | + | Note that, although very convenient, **Unison is not a real backup tool**: it does not keep an history of files, and it tends to replicate mistakes instead of reparing |
Here we show how it can be used to keep the work stuff on your laptop in sync with your home directory on the file server. | Here we show how it can be used to keep the work stuff on your laptop in sync with your home directory on the file server. | ||
Line 19: | Line 29: | ||
==== Install Unison ==== | ==== Install Unison ==== | ||
- | You can either download it directly from the [[http:// | + | You can either download it directly from the [[http:// |
Line 103: | Line 113: | ||
If D is renamed to D' on the remote machine, and this change is propagated to the local machine, all such files or subdirectories P will be deleted. This is because Unison sees the rename as a delete and a separate create: **it deletes the old directory (including the ignored files) and creates a new one** (notincluding the ignored files, since they are completely invisible to it). | If D is renamed to D' on the remote machine, and this change is propagated to the local machine, all such files or subdirectories P will be deleted. This is because Unison sees the rename as a delete and a separate create: **it deletes the old directory (including the ignored files) and creates a new one** (notincluding the ignored files, since they are completely invisible to it). | ||
</ | </ | ||
- | |||
==== Do it! ==== | ==== Do it! ==== | ||
Now that you've prepared and tested your perfect configuration file, it is time to make sure that unison is executed periodically. On unix (linux and mac) you can symply call unison from a script like the following: | Now that you've prepared and tested your perfect configuration file, it is time to make sure that unison is executed periodically. On unix (linux and mac) you can symply call unison from a script like the following: | ||
Line 144: | Line 153: | ||
if [ $? -eq 0 ] ; then | if [ $? -eq 0 ] ; then | ||
msg=$(grep " | msg=$(grep " | ||
- | # notify-send -u low " | + | # |
growlnotify --title " | growlnotify --title " | ||
else | else | ||
Line 150: | Line 159: | ||
msg2=$(grep '< | msg2=$(grep '< | ||
msg3=$(grep '< | msg3=$(grep '< | ||
- | # notify-send -u critical -t 0 " | + | # |
growlnotify --title " | growlnotify --title " | ||
fi | fi | ||
Line 158: | Line 167: | ||
{{backup: | {{backup: | ||
+ |
backup/laptops.txt · Last modified: 2023/10/09 14:33 by admin