Jump to content

How to maintain /etc/rsnapshot.conf through reboot


Recommended Posts

Hi there, I’ve been using unraid for about a month and love it. I had installed rsnapshot and configured it to backup a VPS I have. However at the weekend I rebooted unraid and it appears the rsnapshot config file in /etc/rsnapshot.conf was not maintained.  This is not a docker or plugin, it’s software installed directly into the unraid system.  
 

How can I maintain /etc/rsnapshot.conf through a reboot please.

Link to comment

You do understand that Unraid is installed to a RAM disk.   Thus, /etc/rsnapshot.conf is (actually) being stored in memory.  You have basically two choices:

 

First, copy the file to a location on a hard disk or to the flash drive before shutdown.  You would then restore it during the rsnapshot install process. (It could well be that you will have restore it and stop-and-restart rsnapshot so that it re-reads the file.)

 

Second, change the location of where the program saves its setup parameters and configuration files so that they are on a physical device.

Edited by Frank1940
Link to comment

Thanks this is useful. I was aware that the system ran in ram, but I was/am unsure what the extent was. Is it basically like a ‘live DVD” distro?

I installed rsnapshot with the Nerd Pack plugin, maybe I need to investigate how that works, it must effectively install rsnapshot on every boot.  I thought it might have edited the image file, but maybe not.

Sounds like I need to create a script to copy the .conf file off the array and restart rsnapshot in every boot.

Link to comment
2 minutes ago, Keith Ellis said:

I installed rsnapshot with the Nerd Pack plugin, maybe I need to investigate how that works, it must effectively install rsnapshot on every boot.

Yes, this is exactly what the NerdPack does.

 

3 minutes ago, Keith Ellis said:

Sounds like I need to create a script to copy the .conf file off the array and restart rsnapshot in every boot.

It is normally better to store such files on the USB stick.  Storing them on the array means they will not be available until after the array is started.

 

In terms of copying the file into its runtime position you can either add appropriate commands to the config/go file on the USB stick, or do it via the User Scripts plugin.

Link to comment
7 hours ago, Keith Ellis said:

Hi there, I’ve been using unraid for about a month and love it. I had installed rsnapshot and configured it to backup a VPS I have. However at the weekend I rebooted unraid and it appears the rsnapshot config file in /etc/rsnapshot.conf was not maintained.  This is not a docker or plugin, it’s software installed directly into the unraid system.  
 

How can I maintain /etc/rsnapshot.conf through a reboot please.

You can move it to /boot/rsnapshot.conf and always invoke rsnapshot using "rsnapshot -c /boot/rsnapshot.conf" command.

Edited by gfjardim
Link to comment
2 hours ago, itimpi said:

Yes, this is exactly what the NerdPack does.

 

It is normally better to store such files on the USB stick.  Storing them on the array means they will not be available until after the array is started.

 

In terms of copying the file into its runtime position you can either add appropriate commands to the config/go file on the USB stick, or do it via the User Scripts plugin.

This is excellent information, thank you.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...