Changes

From Amahi Wiki
Jump to: navigation, search
324 bytes removed ,  03:13, 23 June 2020
* Move to the "/etc" directory.
<blockquote>{{Code| cd /etc}}</blockquote>
* Make a backup copy of the rsnapshot configuration file. Why? So that there is a reference just in case.
<blockquote>{{Code| cp rsnapshot.conf rsnapshot.conf.bkup}}</blockquote>
* Now using a favourite editor, open the "rnapshot.conf" file.
<br/>
'''Please Note:''' Items in the configuration file are separated by "tab" characters and NOT multiple spaces.
<blockquote>{{Code| nano rsnapshot.conf}}</blockquote>
* Find the "SNAPSHOT ROOT DIRECTORY" section and change "snapshot_root" to path where the backups will be stored.
<blockquote>{{Text|Text= snapshot_root /media/usbdisk/.private/.snapshots/}}</blockquote>
* Find the "no_create_root" section and remove the "#". This will allow rsnapshot to create the "snapshot root" directory.
<blockquote>{{Text|Text= no_create_root 1}}</blockquote>
* Find the "BACKUP INTERVALS" section and change the line items. What does this all mean? The "#" character at the beginning of each line means the configuration line item will not be enabled. Remove the "#" character as required. For example, when enabled the "interval daily" line will be active and 7 days of backups will be kept.
<blockquote>{{Text|Text= interval hourly 6 interval daily 7 interval weekly 4 interval monthly 12}}</blockquote>
* Find the "GLOBAL OPTIONS" section. This section defines how much information will be saved in the rsnapshot "log" file.
4 Extra Verbose Show extra verbose information
5 Debug mode Everything
<blockquote>Change the following options as required:{{Text|Text= verbose 3 loglevel 3}}</blockquote>
* Find the "logfile" line and change the line item. After rsnapshot has completed backups this is where the resulting "log" file is stored. Change this line as required.
<blockquote>{{Text|Text= logfile /var/log/rsnapshot}}</blockquote>
* Find the "BACKUP POINTS / SCRIPTS" section. Add changes as seen below. This is the section that defines the "key directories" that will be backed up. Please note the "localhost/", this represents the server that it being backed up. "localhost/" is a default name given to the current server. Change this name as required, say "amahiBox/"?
<blockquote>{{Text|Text= backup /var/hda/files/docs/ localhost/ backup /var/hda/files/pictures/ localhost/ backup /var/hda/files/movies/ localhost/ backup /var/hda/files/music/ localhost/ backup /var/hda/files/other_shares_you_made localhost/}}</blockquote>
* Save the "rsnapshot.conf" file.
12,424

edits