Help - Search - Members - Calendar
Full Version: Using tar to backup all small files
Linuxhelp > Support > Technical Support
I'd like to back up my /home directory on a weekly basis. The problem is, /home is 2.9gb

Does anyone know how I can tell tar to only back up files under, say, 5mb?

I think this will work if not its close im on a friends computer right now so i cant test it
I dont know the comand line options to add files to an archive so put them in place of "thetarcommandlinehere"
I'm sorry if this doesent work i'll post again if it doesent and tell you what does

find $HOME -size -5m -exec tar thetarcommandlinehere {} ;
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.