View previous topic :: View next topic |
Author |
Message |
pacho2 Developer
Joined: 04 Mar 2005 Posts: 2599 Location: Oviedo, Spain
|
Posted: Mon May 20, 2013 8:25 am Post subject: About mksquashfs usage |
|
|
Hello
I am trying to do a backup of a directory as follows:
mksquashfs /media/disco1 /media/disco2/disco1.sqsh -no-progress -root-becomes `date +%d-%m-%Y` -keep-as-directory
The problem is that it creates a directory structure as follows:
$ ls
19-05-2013 disco1
$ cd 19-05-2013
$ ls
18-05-2013 disco1
Isn't possible to create a structure as follows?
18-05-2013 19-05-2013 disco1
Thanks |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Mon May 20, 2013 9:40 am Post subject: |
|
|
I am not sure whether I understand your question correctly, but my guess is that if you omit -keep-as-directory it should do what you want. |
|
Back to top |
|
|
pacho2 Developer
Joined: 04 Mar 2005 Posts: 2599 Location: Oviedo, Spain
|
Posted: Mon May 20, 2013 6:23 pm Post subject: |
|
|
The problem is that omitting that option I get each subfolder of "disco1" renamed when appending instead of "disco1" directory |
|
Back to top |
|
|
|