View Single Post
Posts: 237 | Thanked: 274 times | Joined on Jul 2010
#927
Originally Posted by Estel View Post
As I've discussed this with Karam before, I would add my 2 cents. Because his problem is with creating backups of optFS bigger than 4GB (vFAT doesn't accept files larger than 4GB, backupmenu doesn't provide mechanism for splitting tar's into 2 files for backuping/restoring), I think this may be workaround'ed by modifying backupmenu scripts to backup *to* partition formatted as ext3/ext4 (I would drop ntfs here).

Common sense tells me, that this may be achieved just like backuping *from* ext4 partition - by modifying backupmenu scripts. i'll look at this after returning from trip (I'll be back on sunday evening), but, maybe in meantime, more knowledgeable people (ivyking, I'm looking at You ) are able to help?
sorry for very late reply,

as for backing up to an ext4/ext3 partition that's fairly easy to do and involves minimal additions, will try to do it as soon as I have some extra time. (should be soon)

as for splitting the tar ball, that can be done after it is created, which means it's not feasible since it can't be created in the first place if it's size goes over 4GB.

as a work around, we can create a tar ball, and scan rootfs directories, getting list of files, and append the files one by one to the tar ball, after each file is added we check the size of the tar ball, and the size of the next file to be added, if the size of the tar ball and the next file exceed 4GB, we create a new tar ball, adding that file to it and so on..

before applying the 4GB limit backupmenu should check the target partition type, maybe it isn't vFat so there is no need for this.

the restoration mechanism will have to be slightly altered, currently backupmenu clears the partition before restoration, for restoring multiple tar balls, the partition should be cleared once only once in the beginning then the tarballs should be extracted one after the other, maybe make a new menu item for restoration from multiple files, the user has to select the tarballs that are to be restored together.
 

The Following 3 Users Say Thank You to ivyking For This Useful Post: