User Tools

Site Tools


it_services:fi:backuplaptopconf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
it_services:fi:backuplaptopconf [2022/12/05 10:37]
florido [Preparing your machine]
it_services:fi:backuplaptopconf [2023/02/03 10:46] (current)
florido [Exclude some folders/files from the backup by regular expression]
Line 1: Line 1:
-FIXME:​WIP:​FIXME 
- 
 ====== Setting up backup with owncloud ====== ====== Setting up backup with owncloud ======
  
-Currently we cannot offer enough space for a total backup of your home folder, especially if you're saving large datasets, videos or other large size files. Also, ownCloud is not good for such large files. OwnCloud shines in small files.+This page describes how to use ownCloud to backup your files. If you want to use it as a share and synchronization tool (like DropBox or Box), then please refer to this page: [[:​it_services:​fi:​owncloudsharefiles | sharing files with ownCloud]]. 
 + 
 +Currently we cannot offer enough space for a total backup of your home folder, especially if you're saving large datasets, videos or other large size files. Also, ownCloud is not good for such large files. OwnCloud shines in handling ​small files.
  
 The current minimum allocated space per user is **10GB**. You can exceed it, but in case this happens you may be asked to reduce the backup size if required. The current minimum allocated space per user is **10GB**. You can exceed it, but in case this happens you may be asked to reduce the backup size if required.
Line 13: Line 13:
   * You can add more folders to the owncloud backup if you want.    * You can add more folders to the owncloud backup if you want. 
   * on the ownCloud server you create a folder for each laptop that you want to synchronize,​ so that the folder structure on owncloud looks like this:   * on the ownCloud server you create a folder for each laptop that you want to synchronize,​ so that the folder structure on owncloud looks like this:
-    * laptop1/+    * laptopname1/
       * workonlaptop1/​       * workonlaptop1/​
-    * laptop1-win/ +    * laptopname1-win/ 
-    * workonWindowslaptop1/​ +      * workonWindowslaptop1/​ 
-    * laptop2/+    * laptopname2/
       * workonlaptop2/​       * workonlaptop2/​
  
Line 33: Line 33:
   - Locate your home folder path:   - Locate your home folder path:
     * On Linux, usually ''/​home/​username''​     * On Linux, usually ''/​home/​username''​
 +    * On MacOSX, usually ''/​Users/​username/''​
     * On Windows, usually ''​C:​\Users\username''​     * On Windows, usually ''​C:​\Users\username''​
-    * On MacOSX, usually ''/​Users/​username/''​ 
   - Create a ''​work''​ folder in your home or in your desktop, and note the full path   - Create a ''​work''​ folder in your home or in your desktop, and note the full path
     * On Linux, usually ''/​home/​username/​work/''​     * On Linux, usually ''/​home/​username/​work/''​
-    * On Windows, usually ''​C:​\Users\username\work\''​ 
     * On MacOSX, usually ''/​Users/​username/​work/''​     * On MacOSX, usually ''/​Users/​username/​work/''​
 +    * On Windows, usually ''​C:​\Users\username\work\''​
 +
  
  
Line 49: Line 50:
 ===== Connect to the server using the Desktop app ===== ===== Connect to the server using the Desktop app =====
  
-Start the desktop app. +Start the desktop app. You can search for the string '​owncloud'​. The icon looks like this (varies depending on operating systems) {{ :​it_services:​fi:​owncloud_clienticon.png?​48 |}} 
  
-  * Use the following URL when asked: https://​cloud.lucas.lu.se and click ''​Next >''​ +  * Use the following URL when asked: https://​cloud.lucas.lu.se and click ''​Next >'' ​{{ :​it_services:​fi:​owncloud_serverconn.png?​600 |}} 
-  * TODOPIC +  * Insert LUCAS username (usually your LUCAT ID) and password and click ''​Next >'' ​{{ :​it_services:​fi:​owncloud_login.png?​600 |}}
-  * Insert LUCAS username (usually your LUCAT ID) and password and click ''​Next >''​ +
-  * TODOPIC+
  
  
-At this point the app will ask whether you want to synchronize everything from the server. This is only needed ​if you want to synchronize folders shared with you by other users.   +At this point the app will ask whether you want to synchronize everything from the server. This is recommended ​if you want to synchronize folders shared with you by other users or if you want to sync with other computersbut in this page we are configuring a backup, so do not recommend it 
- +
-Insteadfor backup ​purposes ​suggest to select "//​Manually create folder sync connections//"​ and click on ''​Connect...''​ +
-TODOPIC+
  
 +Instead, for backup purposes I suggest to select "//​Manually create folder sync connections//"​ and click on ''​Connect...''​ {{ :​it_services:​fi:​owcloud_manuallycreate.png?​600 |}}
 ===== Configure the folders to backup ===== ===== Configure the folders to backup =====
  
Line 71: Line 68:
 ==== Add folders to backup ==== ==== Add folders to backup ====
  
-  * Choose "Add folder sync connection"​. +  * Choose "Add folder sync connection"​. ​{{ :​it_services:​fi:​owncloud_addsync.png?​600 |}} 
-  * When asked to pick a local folder on your computer to sync, write your ''​work''​ folder path that you noted as described in section [[#​Preparing your machine]]. Click on ''​Next >''​ +  * When asked to pick a local folder on your computer to sync, write your ''​work''​ folder path that you noted as described in section [[#​Preparing your machine]]. In the example below, a work folder in my home folder. Click on ''​Next >'' ​{{ :​it_services:​fi:​owncloud_localworkdir.png?​400 |}} 
-  * The dialog "​Select a remote destination folder"​ shows you the existing folders on the ownCloud server. I recommend you create a folder for each laptop in use to that you do not confuse the backups. You can choose your laptop name. Mine is //louie// so I will use that in the example below. +  * The dialog "​Select a remote destination folder"​ shows you the existing folders on the ownCloud server. I recommend you **create a server ​folder for each laptop in use** so that you do not confuse the backups. You can choose your laptop name or any other word that helps you remembering which computer it is. Mine is //louie// so I will use that in the example below.  
-    * Click on ''​Create Folder''​ +    * Select the base path marked with the ownCloud icon as in the picture below and click on ''​Create Folder'' ​{{ :​it_services:​fi:​owncloud_selectbaseserverfolder.png?​600 |}} 
-    * Write your computer name or anything that identifies your machine (e.g. //​worklaptop//,​ //​mylaptop//,​ //macbook// etc. ) followed by the name of the folder ​you are backing upfor example ​''​work''​. In the example below I choose my hostname, //​louie// ​and the ''​work''​ folder ​//work// +    * Write your computer name or anything that identifies your machine (e.g. //​worklaptop//,​ //​mylaptop//,​ //macbook// etc. ). In this example my computer is called //louie//: {{ :​it_services:​fi:​owncloud_createhostnamefolder.png?​300 |}} 
-    * A new folder will appear on the server. Select the folder and click on ''​Next >''​ +    * Select ​the newly created ​folder ​with the computer nameand click again ''​Create Folder''​. In the example below I choose my hostname, //louie//. {{ :​it_services:​fi:​owncloud_selecthostnamefolder.png?​600 |}} 
-    * If there is already data on the server, you typically have the chance to choose what to sync. This is usually not the case when setting up backup, as you created a new folder on the server.+    * Now we will add the ''​work''​ folder ​**on the server**. ​ It is important that the name on the local system matches the one in ownCloud or you might get confused. {{ :​it_services:​fi:​owncloud_createworkdir.png?​300 |}} 
 +    * A new folder will appear on the server. Select the folder and click on ''​Next >'' ​{{ :​it_services:​fi:​owncloud_work.png?​600 |}} 
 +    * If there is already data on the server, you typically have the chance to choose what to sync. This is usually not the case when setting up backup, as you created a new folder on the server. ​Click on ''​Add Sync Connection''​ {{ :​it_services:​fi:​owncloud_startsync.png?​600 |}}
  
-At this point ownCloud will start synchronizing with the server. It may take quite a while before it's done if you already have data either on the server on on your local machine.+At this point ownCloud will start synchronizing with the server. It may take quite a while before it's done if you already have data either on the server on on your local machine. In the dialog that opens you can see what is synchronized. 
 + 
 +You can repeat the same procedure to add any other folder you want to backup inside the computer name's folder.
  
 ==== Exclude some folders from being synchronized ==== ==== Exclude some folders from being synchronized ====
 +
 +:​!::​!::​!::​!:​ **WARNING** :​!::​!::​!::​!:​
 +
 +Newer versions of the client **delete the local files when un-ticking synchronization**. This is by design. The ownCloud developers only support this kind of syncronization.
 +
 +Hence I recommend not to use this feature for backup. ​
 +
 +If you do not want to backup a subfolder inside a synchronized folder maybe you should rethink what you want to backup, or select individual folders to backup instead.
 +
 +:​!::​!::​!::​!:​ **WARNING** :​!::​!::​!::​!:​
  
 While ownCloud is running, you have the chance of deciding whether you do not want to synchronize a folder any longer. While ownCloud is running, you have the chance of deciding whether you do not want to synchronize a folder any longer.
  
-  * Right click on the ownCloud client icon TODO and choose ''​Settings...''​ +  * Right click on the ownCloud client icon in your toolbar ​and choose ''​Settings...'' ​{{ :​it_services:​fi:​owncloud_settings.png?​300 |}} 
-  * Click on your account name +  * Click on your account name, and click on the small triangle next to the name of the synchronized folder in order to see the list of folders. ​For every remote folder (the one with the cloud) you will see a list of synchronized folders. ​{{ :​it_services:​fi:​owncloud_backupset.png?​600 |}} 
-  * For every remote folder (the one with the cloud) you will see a list of synchronized folders.  +    * Simply un-tick ​folder to stop ownCloud from synchronizing that folder, then click on ''​Apply'' ​to accept the changes. In the example below I am synchronizing ''​test''​ but not ''​annobackupppo''​. {{ :​it_services:​fi:​owncloud_choosewhattosync_louie.png?​600 |}} 
-    * Simply un-tick ​the folder to stop ownCloud from synchronizing that folder+       **NOTE:** the folder will not be synchronized,​ but **the files uploaded so far are still on the server**. You can see them by logging in into https://​cloud.lucas.lu.se 
-    * Click on ''​Apply''​ +       ​**NOTE:​** the files will be **REMOVED from your local machine**, so make sure you synchronized them on the server at least once!
-    * **NOTE:** the folder will not be synchronized,​ but the files uploaded so far are still on the server. You can see them by logging in into https://​cloud.lucas.lu.se +
-    TODOPIC+
   * You can at any time restart synchronizing the folder by ticking it again.   * You can at any time restart synchronizing the folder by ticking it again.
  
 ==== Exclude some folders/​files from the backup by regular expression ==== ==== Exclude some folders/​files from the backup by regular expression ====
 +
 +This is the recommended way to exclude files from backup, but it's not so easy to use.
  
 This needs to be done before adding folders to synchronize,​ or ownCloud will upload all the files under a certain folder. This is done using pattern matching. There is already a predefined set of excluded patterns in ownCloud. This needs to be done before adding folders to synchronize,​ or ownCloud will upload all the files under a certain folder. This is done using pattern matching. There is already a predefined set of excluded patterns in ownCloud.
Line 103: Line 114:
     * Write ''​nobackup''​ or the name of the folder or file you want to exclude from backup.     * Write ''​nobackup''​ or the name of the folder or file you want to exclude from backup.
     * Press ''​OK''​     * Press ''​OK''​
-    * Any filename that contains the word ''​nobackup''​ **in the path** will be excluded by owncloud. +    * Any filename that contains the folder ​''​nobackup''​ **as one of its paths** will be excluded by owncloud. 
-      * For example, the file test/​test/​nobackup/​filename will **not** be backed up. +      * For example, the file ''​test/test**/nobackup/**filename'' ​will **not** be backed up. 
-      * For example, the file test/thisisnobackups/filename **will be backed up**+      * :!: For example, the file ''​test/thisis**nobackup**s/filename'' ​**will be backed up!**
   * You can add any other folder to exclude. Below some suggestions for each operating system:   * You can add any other folder to exclude. Below some suggestions for each operating system:
     * Linux: ''​.cache'',​ ''​.thumbnails''​     * Linux: ''​.cache'',​ ''​.thumbnails''​
-    * Windows: ​TODO+    * Windows: ​''​System Volume Information'',​ ''​hyberfil.sys'',​ ''​pagefile.sys'',​ ''​swapfile.sys''​
     * MacOS X: TODO     * MacOS X: TODO
  
it_services/fi/backuplaptopconf.1670236644.txt.gz · Last modified: 2022/12/05 10:37 by florido

Accessibility Statement