Backup jffs via shell

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

maghuro

Very Senior Member
Hello guys.
Right now I'm using that line to make a backup of my entire jffs in shell:
Bash:
tar -cf some_folder/jffs_"$FWVER".tar /jffs >/dev/null 2>&1

However, everything inside the "jffs_xxxx.tar" file is inside a subfolder ("jffs" in this case).

My question is, using shell script, how can I make this backup without having a subfolder inside the tar file? I mean, I want exactly what "Backup jffs" on webui does, the exactly same structure (http://router.asus.com/Advanced_SettingBackup_Content.asp)

Thanks.
 

Jack Yaz

Part of the Furniture
Hello guys.
Right now I'm using that line to make a backup of my entire jffs in shell:
Bash:
tar -cf some_folder/jffs_"$FWVER".tar /jffs >/dev/null 2>&1

However, everything inside the "jffs_xxxx.tar" file is inside a subfolder ("jffs" in this case).

My question is, using shell script, how can I make this backup without having a subfolder inside the tar file? I mean, I want exactly what "Backup jffs" on webui does, the exactly same structure (http://router.asus.com/Advanced_SettingBackup_Content.asp)

Thanks.
Bash:
tar -cf some_folder/jffs_"$FWVER".tar -C /jffs . >/dev/null 2>&1
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top