WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to tune filetool.lst for fast backup/restore  (Read 8393 times)

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
How to tune filetool.lst for fast backup/restore
« on: January 03, 2010, 11:33:06 PM »
I spent some time in finding out what files in my home folder need to be backed up, and which ones are re-created on reboot. By having only what is necessary in filetool.lst, and by excluding unnecessary browser stuff, I have very fast backup and restore.

So to help others, here is my filetool.lst and xfiletool.lst:

Filetool.lst:
Code: [Select]
opt/bootlocal.sh
opt/shutdown.sh
opt/.tcrc
opt/.filetool.lst
opt/.xfiletool.lst
usr/local/etc/acpi/events/all
usr/share/fonts/arial.ttf
usr/share/fonts/arialbd.ttf
usr/share/fonts/arialbi.ttf
usr/share/fonts/ariali.ttf
usr/share/fonts/comic.ttf
usr/share/fonts/comicbd.ttf
usr/share/fonts/cour.ttf
usr/share/fonts/courbd.ttf
usr/share/fonts/courbi.ttf
usr/share/fonts/couri.ttf
usr/share/fonts/tahoma.ttf
usr/share/fonts/tahomabd.ttf
home/tc/.acpi
home/tc/.beaver
home/tc/.config/chromium
home/tc/.config/rox.sourceforge.net
home/tc/.local/bin
home/tc/.mywbar
home/tc/.openoffice.org2/user
home/tc/.Skype
home/tc/.sounds
home/tc/.thunderbird/profiles.ini
home/tc/.ash_history
home/tc/.conkyrc
home/tc/.jwmrc
home/tc/.jwmrc-keys
home/tc/.jwmrc-theme
home/tc/.jwmrc-tray
home/tc/.profile
home/tc/.Xdefaults
home/tc/.bashrc
home/tc/.ashrc
home/tc/.gtk-bookmarks
home/tc/.gtkrc-2.0
home/tc/.xsession
(The ttf font files are symlinks only, occupying very little space and requiring little time. The actual fonts live outside, since they won't change and are quite large.)

xfiletool.lst:
Code: [Select]
Cache
XUL.mfasl
opt/.tce_dir
home/tc/.config/vlc/vlcrc
home/tc/.beaver/wordfile.txt
home/tc/.config/chromium/Safe Browsing Bloom
home/tc/.config/chromium/Safe Browsing Bloom Filter 2
home/tc/.config/chromium/Dictionaries
home/tc/.config/chromium/Default/Archived*
home/tc/.config/chromium/Default/*.bak
home/tc/.config/chromium/Default/Current*
home/tc/.config/chromium/Default/*Index*
home/tc/.config/chromium/Default/Last*
home/tc/.config/chromium/Default/Visited*
home/tc/.config/chromium/Default/Web*
home/tc/.config/chromium/Default/Sync Data
home/tc/.config/chromium/Default/History

Edit:

Forgot to mention this is for my USB pendrive, which I use anywhere and which contains both windows and tcl stuff. I don't have a persistent /home, since this would tend to shorten the USB drive's lifespan.

For my hard drive installation, I back up only my own scripts.
« Last Edit: January 04, 2010, 12:12:22 AM by jur »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: How to tune filetool.lst for fast backup/restore
« Reply #1 on: January 04, 2010, 12:16:14 AM »
Thanks for sharing. Shows that a little file maintenance can go along way to having quick backups!
10+ Years Contributing to Linux Open Source Projects.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How to tune filetool.lst for fast backup/restore
« Reply #2 on: January 06, 2010, 08:54:32 PM »
One more tip, this command at the command prompt will let you eliminate all files in /home/tc that are over 5MB large by adding them to the /opt/.xfiletool.lst.  Of course, change 5000k (5mb) to whatever your tolerance is.  This is to be run right before making your backup.  Gives you a quick method of eliminating large files.  Of course, the resulting adds to /opt/.xfiletool.lst would need to be edited of any files above your tolerance that you would want to keep, or use the "-not -name" option in the find command to point out those files that are wanted..

Code: [Select]
find /home/tc -size +5000k | cut -f2- -d / >> /opt/.xfiletool.lst

or

Code: [Select]
find /home/tc -not -name tinycore_2.7.iso -not -name firefox.tcz -size +5000k | cut -f2- -d / >> /opt/.xfiletool.lst

Of course, the opposite approach can be used, by including files beneath a certain size to .filetool.sh

Code: [Select]
find /home/tc -size -5000k | cut -f2- -d / >> /opt/.filetool.lst

And then simply manually adding the few large files you want to keep to the backup.  The second approach of course assumes that the /home/tc directory has been removed from /opt/.filetool.lst.  And also, that those files in /opt/.filetool;lst actually exist or an error will occur  The safer way is to use the first method if this way is used.
« Last Edit: January 06, 2010, 09:38:07 PM by Jason W »

Offline MakodFilu

  • Newbie
  • *
  • Posts: 46
Re: How to tune filetool.lst for fast backup/restore
« Reply #3 on: January 28, 2010, 11:05:02 AM »
I would include /home/tc/.logo.xpm since is is recreated at boot time and every time you change your background to some color from a .bz2 under /usr/share/xpm

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: How to tune filetool.lst for fast backup/restore
« Reply #4 on: May 04, 2013, 03:47:53 PM »
<bump>

Just switched to Chromium after a long time using Namoroka, and immediately had a backup file 10X larger than it used to be. A belated thank you to jur for researching a solution.
« Last Edit: May 04, 2013, 11:40:54 PM by thane »