FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
118 views 0 comments
by anonymous
Hello,

I know trough the webinterface you can backup and create users default config.

is there a way to create this trough CLI?

Best regards,

Tansu

1 Answer

0 votes
by anonymous

Hi,

To create user default config:

if [ ! -d "/etc/default-config" ]; then mkdir /etc/default-config; fi
date +%s > /etc/default-config/config_date
/sbin/sysupgrade --create-backup /etc/default-config/config.tar.gz 2>/dev/null
 

To remove one:

 rm -f /etc/default-config/config.tar.gz

rm -f /etc/default-config/config_date

to create a backup  

sysupgrade -b <file name>

To restore from said backup

sysupgrade -r <file name> 

Best answer