I maintain a file server. I need to backup files that have changed in a period of time.
First i compressed up everything to 4gb files and backed up to dvd. But 7z that I was using
7z a -t7z /home/user/myfiles051413_proj.7z /home/share/projects -v4000m -m0=bzip2 -mmt=4
does not seem to have a way to zip modified files in the last 60 days and i am unsure how to pass that to a command sorta like this. I do not want to have to compress the whole folder and backup what is already backed up! (waste of space)
tar seems to work good with this
find /home/share/projects -mtime -60
and piping it into a command works too but spaces give me issues. Here is the command I am attempting to get work. Finding all files modified in last 60 days. then compressing them into 4gb files.
find /home/share/projects/ -mtime -60 | xargs tar -cvML 4194304 -f /home/user/myfiles`date '+%d%m%Y'_proj.tar`
at the moment it will run for a while then only have one small file in it. it prints out numerous files on the screen!
I have been playing with -print0
find /home/samba/shares/projects -mtime -60 -type f -print0| xargs tar -cvML 4194304 -f /home/samba/shares/bkup/`date '+%d%m%Y'_proj.tar` -T - --null
i get a whole lot of tar: de: Cannot stat: No such file or directory