Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i would like to make a backup of a folder that is quite big (about 10 gb).
So far i haven't found a solution, except manually splitting the folder into three parts and burning them one after another, and this isn't imho a great solution.
Is there a software / burning program (with a gui) that can do this easily and out of the box?
E.g. telling me i need 3 normal dvd, automatically splitting the content and asking for the 2nd and 3rd dvd after the first?
Thank you in advance.
p.s. no tar but preserving the directory structure (must be easily readable on every platform).
Sorry but why don't you just copy the file onto a usb stick. You can get a 16GB stick from Amazon.it for about €10.
Ciao,
jdk
P.S. Isn't Debian Etch a bit old (if you're still running it)?
yup what frankbell stated, if you can not compress the data down under 4.7G (in reality that would be 4.5G) for a standard DVD.
if you are unable to compress the data down via tar, or some other compression software then you will have no choice other then to split up the directory and use no less then 3 DVDs uncompressed with the size you mentioned.
if not, then buy a USB device and perform your backups to flash drives. to be blunt DVD backups will have roughly a 40-60% failure rate depending on the media and your lazer drive.
Seems to understand that there isn't a Linux software that is able to perform such a (basic?) thing.
So i'll split them manually, but what a pain in 2013...
well lets see DVD+-RW and W are from the 1990's so yeah its 2013 tech problem with linux. uh huh.
try again. you asked what to do. the answer is to compress the data. guess what no OS is able to make 10G fit on a storage media that is only 4.7G without some form of compression. If that compression is unable to get the 10G down under 4.7G to fit, it too will fail.
depending on what is in this 10 gig folder
the newer xz compression dose a GREAT job on code and text
if it is photos ???
jpg's - forget it
png's compresed at 6
resave at max compression - that might buy you about 1 less gig
Videos - out of luck, except to re-encode to mp4 ( and loose quality )
#!/bin/bash
DVDSL=4700000000
DVDDL=8547000000
Dir=$1
TmpDir=$(mktemp -d)
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
Disk=1
CuSize=0
for file in $(find $Dir -type f | sort );do
# Edit 2013-06-26
# Below is broken, as $Size doesn’t exist any disks after the first are too large
# CuSize=$( expr $CuSize + $( stat -c %s "$file"))
Size=$( stat -c %s "$file")
CuSize=$( expr $CuSize + $Size )
if [ "$CuSize" -gt "$DVDDL" ];
then
Disk=$(expr $Disk + 1)
CuSize=$Size
fi
echo $file >> $TmpDir/Disk$(printf "%.3d" $Disk).list
done
IFS=$SAVEIFS
unset SAVEIFS
echo "Requires $Disk dvd(s) ( dual layer as I haven't bothered to set up selection )"
read -p "Press [Enter] to continue ( ctrl + c to quit, too lazy to do anything else here )"
for disk in $(ls $TmpDir/*.list);do
read -p "Please insert blank for $(basename $disk .list) and Press [Enter]"
growisofs -Z /dev/dvd -joliet-long -r `cat $disk`
done
rm -r $TmpDir
It is really dumb,
The sort is basic, would make sense for anything that needed to be in a sequential order but not space efficient
It checks practically nothing
Oh, hardcoded to dual layer dvd, + no menu, + no help
but it is simple
Edit
the genisoimage options might need tweaking, it has been a long time since I used it
Last edited by Firerat; 06-26-2013 at 01:01 AM.
Reason: Fixed a problem leading to oversized images after 1st disk ( see inline comment )
well lets see DVD+-RW and W are from the 1990's so yeah its 2013 tech problem with linux. uh huh.
try again. you asked what to do. the answer is to compress the data. guess what no OS is able to make 10G fit on a storage media that is only 4.7G without some form of compression. If that compression is unable to get the 10G down under 4.7G to fit, it too will fail.
Welcome to computers since day 1.
Yes, it is indeed a problem with brasero, xfburn, k3b and so on.
Year 2013, we could also use a BluRay, and the problem would be the same with bigger folders (maybe even worse, i haven't yet tried to burn a BluRay with Linux). There isn't an easy and working software to backup e.g. my home directory to current optical media.
By the way i know i could use tar, 7zip xz or so and split the archive but i want it to be readable also from dvds, and of course i know that i can't fit 10 GB on a single 4.7 GB dvd (read my first post).
#!/bin/bash
DVDSL=4700000000
DVDDL=8547000000
Dir=$1
TmpDir=$(mktemp -d)
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
Disk=1
CuSize=0
for file in $(find $Dir -type f | sort );do
CuSize=$( expr $CuSize + $( stat -c %s "$file"))
if [ "$CuSize" -gt "$DVDDL" ];
then
Disk=$(expr $Disk + 1)
CuSize=$Size
fi
echo $file >> $TmpDir/Disk$(printf "%.3d" $Disk).list
done
IFS=$SAVEIFS
unset SAVEIFS
echo "Requires $Disk dvd(s) ( dual layer as I haven't bothered to set up selection )"
read -p "Press [Enter] to continue ( ctrl + c to quit, too lazy to do anything else here )"
for disk in $(ls $TmpDir/*.list);do
read -p "Please insert blank for $(basename $disk .list) and Press [Enter]"
growisofs -Z /dev/dvd -joliet-long -r `cat $disk`
done
rm -r $TmpDir
It is really dumb,
The sort is basic, would make sense for anything that needed to be in a sequential order but not space efficient
It checks practically nothing
Oh, hardcoded to dual layer dvd, + no menu, + no help
but it is simple
Edit
the genisoimage options might need tweaking, it has been a long time since I used it
Thank you Firerat, i'll take a look at the script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.