Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-16-2009, 09:40 PM   #1
LQ Newbie
Registered: Dec 2005
Posts: 26

Rep: Reputation: 15
backup files to DVD older than a certain date


I have a large number of files and I want to backup some of them to DVDs. I'd probably like to use about 10 DVDs to backup a portion of the older files. What I'm looking for is a command(s) that would list files older than a certain date and tell me the cumulative size of all of those files. It would be nice if the command could move (copy then delete probably) the files if the group of listed files meets the size requirements of a DVD.

I know I could use find to list files older than a certain date, but I can't think of how to determine their cumulative size.

Can anyone suggest something?

Thanks in advance,

Old 10-17-2009, 12:25 AM   #2
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
ls -l will print the date. You can rearange the LS command to show it in front to avoid problems with file name with spaces. Then use grep to select the years and then the month with some regex


use the find command

To check for size, use the du command.

You can also automate the disk creation by playing with growiso and loop devices + mount.

To automate all that, no single command will work, you need to write a script using these commands.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need help with script to organise files into folders as part of DVD backup script jasybee2000 Linux - Newbie 5 06-15-2009 07:29 PM
what is the procedure for copying files(in this case a fulldump & backup) onto dvd andy curran Linux - Newbie 3 02-04-2008 10:50 AM
Command line: How do I backup files modified after a specific date only rm_-rf_windows Linux - General 2 06-28-2007 08:34 PM
Sorting all files of home folder modified after a specific date for backup fc6_user Linux - General 2 03-30-2007 02:24 AM
I need a backup program that will create files I can burn to DVD royeo Linux - Newbie 2 09-01-2006 04:35 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:40 PM.

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