Hello,
I had to reset my TS-412 after the a firmware update (to 4.1.1 build 20141003). Unfortunately I don't have a backup of my settings (as .bin file).
Is it possible to restore the settings with the files in the .@backup_config directory?
Thanks,
matthias
Restore settings from .@backup_config
-
- New here
- Posts: 3
- Joined: Wed Apr 23, 2014 4:35 pm
- pwilson
- Guru
- Posts: 22533
- Joined: Fri Mar 06, 2009 11:20 am
- Location: Victoria, BC, Canada (UTC-08:00)
Re: Restore settings from .@backup_config
crowstone wrote:Hello,
I had to reset my TS-412 after the a firmware update (to 4.1.1 build 20141003). Unfortunately I don't have a backup of my settings (as .bin file).
Is it possible to restore the settings with the files in the .@backup_config directory?
Thanks,
matthias
Code: Select all
cd /
tar xvfz $(dirname $(getcfg -f /etc/config/smb.conf Public path))/.@backup_config/0_$(date +%Y%m%d --date="last wednesday")_0304.tar.gz
Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs
Please review: When you're asking a question, please include the following.
-
- New here
- Posts: 3
- Joined: Wed Apr 23, 2014 4:35 pm
Re: Restore settings from .@backup_config
Thanks Patrick,
that sounds pretty easy. Do I have to repeat this step for each file or does it restore all settings? I'm not that linux professional to understand if the getcfg+smb.conf part only restores the SMB settings or directs to the config folder, sorry.
Regards,
matthias
that sounds pretty easy. Do I have to repeat this step for each file or does it restore all settings? I'm not that linux professional to understand if the getcfg+smb.conf part only restores the SMB settings or directs to the config folder, sorry.
Regards,
matthias
- pwilson
- Guru
- Posts: 22533
- Joined: Fri Mar 06, 2009 11:20 am
- Location: Victoria, BC, Canada (UTC-08:00)
Re: Restore settings from .@backup_config
I thought you wanted to restore "all" your settings. The command I provided restores all of your settings from "last wednesday".crowstone wrote:Thanks Patrick,
that sounds pretty easy. Do I have to repeat this step for each file or does it restore all settings? I'm not that linux professional to understand if the getcfg+smb.conf part only restores the SMB settings or directs to the config folder, sorry.
Regards,
matthias
You'll probably need to restart the NAS to pick up the changes.
Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs
Please review: When you're asking a question, please include the following.
-
- New here
- Posts: 3
- Joined: Wed Apr 23, 2014 4:35 pm
Re: Restore settings from .@backup_config
Yes Patrick,
that's exactly what I need, I was just wondering about that smb.conf included in the command.
Thank you.
matthias
that's exactly what I need, I was just wondering about that smb.conf included in the command.
Thank you.
matthias
- pwilson
- Guru
- Posts: 22533
- Joined: Fri Mar 06, 2009 11:20 am
- Location: Victoria, BC, Canada (UTC-08:00)
Re: Restore settings from .@backup_config
I had to ask Samba in order to "harvest" the location of your ".@backup_config" directory from the NAS, as you didn't think to provide this useful information when asking how to restore your settings from ".@backup_config".crowstone wrote:Yes Patrick,
that's exactly what I need, I was just wondering about that smb.conf included in the command.
Thank you.
matthias
Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs
Please review: When you're asking a question, please include the following.