What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Backup jffs via shell

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.
 
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

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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