What's new

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.
 

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
 

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