Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:urbackup_server_and_client [2018/03/08 07:28] billdozor [Client CLI] |
linux_wiki:urbackup_server_and_client [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 106: | Line 106: | ||
* Using a snapshot method, a block snapshot is made of your data and that is used for the backup. (This is typically more reliable than a straight up file copy operation) | * Using a snapshot method, a block snapshot is made of your data and that is used for the backup. (This is typically more reliable than a straight up file copy operation) | ||
* **1) dattobd** volume snapshot kernel module from https:// | * **1) dattobd** volume snapshot kernel module from https:// | ||
- | * Install instructions: | + | * Install instructions: |
- | * **2) LVM** - Logical Volume Manager snapshots | + | * Good: No extra space needed, creates copy on write special device (not tested, just read about it) |
+ | * Bad: Extra kernel module install | ||
+ | * **2) LVM** - Logical Volume Manager snapshots | ||
+ | * Good: Native snapshots (if LVM already setup on system) | ||
+ | * Bad: Snapshots require free space in the same volume group as the logical volume being backed up, equal to the used size. (snapshots removed after backup completes) | ||
* **4) Use no snapshot** mechanism | * **4) Use no snapshot** mechanism | ||
+ | * Good: Simple, no add-ons, no extra space required | ||
+ | * Bad: Since it is essentially a rsync, if files are modified during backup, there could be inconsistencies. | ||
* Enable and start (should automatically do this)< | * Enable and start (should automatically do this)< | ||
Line 167: | Line 173: | ||
Login to the web console and navigate to " | Login to the web console and navigate to " | ||
- | * **Settings -> Server** | + | * **Settings |
* Backup storage path: Full path to file system location where you want backups stored | * Backup storage path: Full path to file system location where you want backups stored | ||
* Server URL: Set to URL that you can access the web console (so clients can access and restore files) | * Server URL: Set to URL that you can access the web console (so clients can access and restore files) | ||
Line 176: | Line 182: | ||
* **Note**: Its a good idea to have a window of an hour or two in which backups will not run so cleanup jobs can run successfully. | * **Note**: Its a good idea to have a window of an hour or two in which backups will not run so cleanup jobs can run successfully. | ||
- | | + | \\ |
+ | | ||
* Two types of wildcards are available: | * Two types of wildcards are available: | ||
* * (star) -> Matches any character, including file system path slash (forward slash for Linux, back slash for Windows) | * * (star) -> Matches any character, including file system path slash (forward slash for Linux, back slash for Windows) | ||
Line 200: | Line 207: | ||
* Example< | * Example< | ||
- | | + | \\ |
+ | | ||
* Review the list of permissions and decide what you want each client to be able to do. | * Review the list of permissions and decide what you want each client to be able to do. | ||
- | | + | \\ |
+ | | ||
* Delay after system startup: Delay in minutes after system startup before backups can begin on clients. | * Delay after system startup: Delay in minutes after system startup before backups can begin on clients. | ||
* Backup window: Set the days/hours during which backups can run. | * Backup window: Set the days/hours during which backups can run. | ||
Line 210: | Line 219: | ||
* Perform autoupdates silently: Check if you want client software to update in the background. | * Perform autoupdates silently: Check if you want client software to update in the background. | ||
- | | + | \\ |
+ | | ||
* FIXME - to add when I get around to it | * FIXME - to add when I get around to it | ||
- | | + | \\ |
- | * FIXME - to add when I get around | + | |
+ | * E-Mail addresses: enter email address(es) semi colon separated | ||
+ | * Send ok mail after backup status goes from not ok to ok: check this to get the recovered email. | ||
- | | + | \\ |
+ | | ||
* FIXME - to add when I get around to it | * FIXME - to add when I get around to it | ||
- | | + | \\ |
- | * FIXME - to add when I get around | + | |
+ | * Most defaults are good settings. | ||
+ | * Database cache size: 512 MB (I increased this from 200) | ||
+ | * Run backups with background priority: Check this to not impact the clients as much when backups run. | ||
+ | |||
+ | \\ | ||
+ | * **Settings -> Mail** - Google SMTP example | ||
+ | * Mail server name: smtp.gmail.com | ||
+ | * Mail server port: 587 | ||
+ | * Mail server username: yourgoogleaccount@gmail.com | ||
+ | * Mail server password: [[https:// | ||
+ | * Sender E-mail Address: yourgoogleaccount@gmail.com | ||
+ | * Send mails only with SSL/TLS: Checked | ||
+ | * Send test mail to this email: yourgoogleaccount@gmail.com | ||
===== Server CLI ===== | ===== Server CLI ===== | ||
Line 245: | Line 271: | ||
* LVM snapshots< | * LVM snapshots< | ||
remove_filesystem_snapshot=lvm_remove_filesystem_snapshot</ | remove_filesystem_snapshot=lvm_remove_filesystem_snapshot</ | ||
- | * No shapshots | + | * No shapshots< |
- | remove_filesystem_snapshot=</ | + | touch / |
* Restart the backend client service< | * Restart the backend client service< | ||
Line 278: | Line 304: | ||
* Add directory to backup list< | * Add directory to backup list< | ||
* Remove directory from backup list< | * Remove directory from backup list< | ||
+ | * **Warning**: | ||
---- | ---- | ||
+ | |||
+ | ====== Mirroring the Backups ====== | ||
+ | |||
+ | The backup location on the server can be rsync' | ||
+ | |||
+ | This is useful if you were to attach removable storage to the server, run the rsync of the latest backups, and take the removable storage offsite. | ||
+ | |||
+ | Due to urbackup' | ||
+ | |||
+ | Example | ||
+ | * Urbackup location: / | ||
+ | * The clients directory has symlinks to the latest backups: / | ||
+ | * Rsync example: sync the latest backups to an external drive< | ||
+ | |||
+ | ---- | ||
+ |