LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-17-2013, 01:54 AM   #1
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Rep: Reputation: 30
How to backup a big folder to dvd?


Hello everyone,

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).
 
Old 06-17-2013, 02:34 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
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)?
 
Old 06-17-2013, 03:39 AM   #3
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Original Poster
Rep: Reputation: 30
Thank you for the idea but i need and i want to write them to dvd.

Ok, mint 14.
 
Old 06-17-2013, 06:27 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Double-Layer DVDs max out at about 8.7 GB capacity. Can you compress the folder into a tarball so it will fit?
 
Old 06-17-2013, 07:30 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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.
 
Old 06-18-2013, 06:38 AM   #6
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Original Poster
Rep: Reputation: 30
Ok thank you all!

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...
 
Old 06-18-2013, 02:08 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by mtb View Post
Ok thank you all!

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.

Welcome to computers since day 1.
 
Old 06-18-2013, 02:39 PM   #8
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
looks like you are after something not unlike this

https://launchpad.net/dargui

GUI for http://dar.linux.free.fr/
 
Old 06-18-2013, 10:34 PM   #9
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334

Rep: Reputation: 60
I am not sure what you mean by manually splitting the file. You could just use split.

Code:
# Create tar archive
$ tar czvf - ./my_large_folder/ | split -d -b 4G - backup.tar.gz.

# Uncompress
$ cat backup.tar.gz.* | tar xzvf -
Regards,
Stefan
 
Old 06-18-2013, 10:41 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 )
 
Old 06-19-2013, 02:52 AM   #11
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Not sure we understand what mtb is really after

I have written a very basic script

Code:
#!/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 )
 
Old 06-19-2013, 03:27 AM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you just want to split them then 7zip will auto do that
bigFile.7z.001
bigFile.7z.002
bigFile.7z.003

almost every distro has it built in or in there repos
 
Old 06-19-2013, 03:59 AM   #13
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
@John,

I think the mention of 'backup' in the OP is throwing you off the trail

They don't want a backup, but rather a working copy on DVD

No archives or compression
 
Old 06-19-2013, 02:58 PM   #14
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by lleb View Post
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).
 
Old 06-19-2013, 02:59 PM   #15
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Firerat View Post
Not sure we understand what mtb is really after

I have written a very basic script

Code:
#!/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.
 
  


Reply

Tags
multiple dvd burning



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can backup a remote server(only folder needed) with ftp ,daily backup? ahjafari Linux - Newbie 1 10-26-2011 04:04 PM
Newbie trying to write a simple backup script to backup a single folder Nd for school stryker759a Linux - Newbie 2 09-16-2009 08:52 AM
Compressing a very big folder mathimca05 Linux - Newbie 2 12-20-2007 06:50 AM
error while copying a big size folder dissident_goodchild SUSE / openSUSE 10 08-28-2007 05:56 PM
How big can backup.tar.gz be? Heart DamnSmallLinux 2 07-05-2006 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration