Proper way to split a large directory into partitions respecting dirname and filename, and then create burnable iso for Blu-ray preserving the directory tree. #55
Replies: 2 comments
|
Problem solved by manually editing the partition content into to Then run Thank you very much for creating this tool! |
0 replies
|
Perfect, thanks for your feedback :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want to backup
/mnt/drive/photoswhich have a very large directory tree like this:I would like to do 2 things:
fpartinto multiple partitions, each of which contains less than 25GB of data (for 25GB Blu-ray disc), and the splitting should respect the dirname and filename in alphebatical order.fpart.After some trial and error, for 1), I think it can be achieved by
find /mnt/drive/photos -type f | sort | fpart -L -s 23500m -i - -o photos.It generated multiple files with filename
photos.1photos.2...photos.n, I believed they are called partitions.The partitions content seems to be sorted with alphabetical order.
Because some of the partitions exceed 25GB with the
-L -s 25g, so I use-L -s 23500minstead.After that, it is also challenging to make a burnable ISO.
I guess the proper tool for this should be
mkisofsorxorrisofs, because the-path-listflag of both tools seems to be designed to read the output generated byfpart.What I want in the ISO is like this:
I tested it with the command
mkisofs -o image1.iso -J -r -graft-points -path-list photos.1However, it seems that the
-graft-pointsis not respected by-path-list, all the files in the partitionphotos.1are put to the root directory of ISO. It generated an error because some of them having the same filename.mkisofs -o image1.iso -J -r -graft-points /=/mnt/drive/photos -path-list photos.1, also did not work. It did 2 things: 1) put ALL the directories inside/mnt/drive/photosinto the root of ISO. 2) put all the files in the partitionphotos.1into the root of ISO.I am pretty much stuck here after testing it for a whole day.
Am i using
fpartormkisofsimproperly so they are not working together?Please help!
All reactions