Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
About mksquashfs usage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pacho2
Developer
Developer


Joined: 04 Mar 2005
Posts: 2599
Location: Oviedo, Spain

PostPosted: Mon May 20, 2013 8:25 am    Post subject: About mksquashfs usage Reply with quote

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
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Mon May 20, 2013 9:40 am    Post subject: Reply with quote

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
View user's profile Send private message
pacho2
Developer
Developer


Joined: 04 Mar 2005
Posts: 2599
Location: Oviedo, Spain

PostPosted: Mon May 20, 2013 6:23 pm    Post subject: Reply with quote

The problem is that omitting that option I get each subfolder of "disco1" renamed when appending instead of "disco1" directory
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum