WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Remove individual files from <bakupList>?  (Read 3748 times)

Offline labeas

  • Sr. Member
  • ****
  • Posts: 266
Remove individual files from <bakupList>?
« on: May 25, 2017, 07:19:35 PM »
NonVerbatum/fromMemory items are indicated <thus>.
TC writers need to distingiush between files & directories.
In trying to clean-up my bakup/restore data, I noticed in the GUI:
a list of files in </home/tc> which I don't want to be backedUp.
The files were listed in the GUI & existed in </home/tc>.

Apparently individual <path/fileID> can be added via the GUI for backingUP?
But can they be <subtracted>? And where is the files which list these
individual FilesToBeBackedUp?
!!!! Now I can't get the GUI to show that <list of files in /home/tc> ?
   Please advise.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1021
Re: Remove individual files from <bakupList>?
« Reply #1 on: May 25, 2017, 09:03:08 PM »
There's a GUI for these? Who knew?  :o  The file / directory list to save is in /opt/.filetool.lst. The file /directory list to exclude is in /opt/.xfiletool.lst.

Be sure that you have permissions on the files in both lists. Thanks to a bug in busybox tar the backup will fail if root does not have read rights in a file in the exclude list. I filed a bug on it a year and a half ago and it is still unassigned so don't expect it to be fixed any time soon. And yes it's possible to have directories root can't read like shared folders in VMware.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Remove individual files from <bakupList>?
« Reply #2 on: May 25, 2017, 09:40:56 PM »
There's so many methods to add or remove files and directories and their contents to and from the backup.

The GUI makes it so easy..


@labeas  I'm not sure I understand the question, but there are two files which control files to or not too backup
filetool.lst  too backup, and
xfiletool.lst  Xclude from backup

just experiment with these two files and you'll figure it out easy enough






Offline labeas

  • Sr. Member
  • ****
  • Posts: 266
Re: Remove individual files from <bakupList>?
« Reply #3 on: June 02, 2017, 10:31:46 PM »
> just experiment with these two files and you'll figure it out easy enough
===
No! a baby and your dog "figures it out by experimenting".
This is computer SCIENCE. We should strive to have <exact syntax>.
And "many ways of doing it" is bad: like GoTos / spagetti-code.
Also each test for Backup/Restore needs a reboot.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Remove individual files from <bakupList>?
« Reply #4 on: June 02, 2017, 11:54:07 PM »
No, it does not.
You can do a backup, and examine the backup file with mc.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: Remove individual files from <bakupList>?
« Reply #5 on: June 03, 2017, 12:12:00 AM »
..and "filetool.sh -d" will do a dry run backup

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 673
Re: Remove individual files from <bakupList>?
« Reply #6 on: June 03, 2017, 01:22:45 AM »
And look at this files, also saying that you have to remove the first backslash(root) character.

Include file:
Code: (bash) [Select]
nano /opt/.filetool.lst
Exclude file:
Code: (bash) [Select]
nano /opt/.xfiletool.lst

 

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Remove individual files from <bakupList>?
« Reply #7 on: June 03, 2017, 06:28:15 PM »
This is computer SCIENCE. We should strive to have <exact syntax>.
We've attempted to point you in the right direction to understand the Backup system before..
Just one of those occasions:  http://forum.tinycorelinux.net/index.php/topic,20773.msg129656.html#msg129656

Besides, the Corebook has most your answers, Chapter7.1 indicates in particular where to find both hidden  filetool.list files   you read the book right?

You could also use the terminal to search for files,  try:
Code: [Select]
sudo find / -iname "*filetool.lst"
The Wiki als has an explanation of the Backup system
http://wiki.tinycorelinux.net/wiki:start#persistence

Try looking under "Getting tinycore to save your documents and settings"

Note also that "Exclusions will override inclusions"  (Also from the book)  That is something important to remember..



« Last Edit: June 03, 2017, 06:38:22 PM by coreplayer2 »

Offline JustinCB

  • Newbie
  • *
  • Posts: 28
Re: Remove individual files from <bakupList>?
« Reply #8 on: June 06, 2017, 10:13:59 AM »
The GUI for managing the files is opened by going to ControlPanel and clicking, under "Maintenance", "Backup/Restore".  To stop some files or directories from being backed up, click the tab that says, "Excluded from Backup (.xfiletool.lst)", then at the bottom, right hand corner of the window, there is a drop down menu that has the items "File" and "Directory".  You can choose whichever one you want to exclude, then click the button "Add" that is to the left of the drop down menu.  it will open up a popup window titled "Select <file or directory> to be added to /opt/.xfiletool.lst".  Use the file manager in that window to choose the file or directory you want to exclude from the backup.