LinHES Forums
http://forum.linhes.org/

Directories Keep Coming Back After Deletion
http://forum.linhes.org/viewtopic.php?f=21&t=25603
Page 1 of 1

Author:  sparks [ Sun Jan 05, 2020 10:05 am ]
Post subject:  Directories Keep Coming Back After Deletion

When I check my LinHES backup/systembackups I see:
Code:
drwxr-xr-x 6 root root       4096 Jun  3  2017 2017-06-03_09-58
drwxr-xr-x 5 root root       4096 Nov 27  2018 2018-11-27_10-27
drwxr-xr-x 5 root root       4096 Feb 13  2019 2019-02-13_14-30
drwxr-xr-x 5 root root       4096 May 24  2019 2019-05-24_16-06
drwxr-xr-x 5 root root       4096 May 26  2019 2019-05-26_01-04
drwxr-xr-x 5 root root       4096 Jun  2  2019 2019-06-02_01-04
drwxr-xr-x 6 root root       4096 Jul 28 10:31 2019-07-28_10-31
drwxr-xr-x 6 root root       4096 Dec 31 14:09 2019-12-31_14-09
drwxr-xr-x 6 root root       4096 Jan  2 13:48 2020-01-02_13-48
-rw-r--r-- 1 root root 4624503138 Dec 23 01:08 backup.2019-12-23_00-58.tgz
-rw-r--r-- 1 root root 4624317979 Dec 24 20:37 backup.2019-12-24_20-24.tgz
-rw-r--r-- 1 root root 4623286638 Dec 25 19:51 backup.2019-12-25_19-42.tgz
-rw-r--r-- 1 root root 4624109786 Dec 27 10:28 backup.2019-12-27_10-17.tgz
-rw-r--r-- 1 root root 4624290171 Dec 28 12:07 backup.2019-12-28_11-56.tgz
-rw-r--r-- 1 root root 4624288446 Dec 29 14:51 backup.2019-12-29_14-40.tgz
-rw-r--r-- 1 root root 4624483844 Dec 30 00:50 backup.2019-12-30_00-40.tgz
-rw-r--r-- 1 root root 4624512292 Dec 31 14:32 backup.2019-12-31_14-22.tgz
-rw-r--r-- 1 root root 4624144116 Jan  1 14:15 backup.2020-01-01_14-05.tgz
-rw-r--r-- 1 root root 3547381760 Jan  2 13:58 backup.2020-01-02_13-48.tgz
-rw-r--r-- 1 root root 4624255784 Jan  2 16:10 backup.2020-01-02_16-01.tgz
-rw-r--r-- 1 root root 4624746554 Jan  3 18:58 backup.2020-01-03_18-49.tgz
-rw-r--r-- 1 root root 4625117855 Jan  4 10:01 backup.2020-01-04_09-50.tgz
-rw-r--r-- 1 root root 4625309721 Jan  5 02:50 backup.2020-01-05_02-41.tgz
drwxr-xr-x 2 root root       4096 Mar  9  2019 errored_backups

Several times I have deleted these directories (that I assume had come from backup jobs that faltered) and the next time I check they're back. How do I get rid of these directories once and for all? I do a secondary backup of LinHES and these directories, which do contain many files, are taking up time, space, and bandwidth. Most are too old to be of use.

sparks

Author:  brfransen [ Sun Jan 05, 2020 10:10 am ]
Post subject:  Re: Directories Keep Coming Back After Deletion

Is there anything in errored_backups that lines up with the dir names?

Author:  sparks [ Mon Jan 06, 2020 9:14 pm ]
Post subject:  Re: Directories Keep Coming Back After Deletion

No. There were 3 tar.gz files in the error dir that had different dates. What I have tried is moving the dirs to /tmp and deleting them there. I'll have to wait and see if any reappear. I'm of the mind now that this is a linux problem and not a LinHES problem. But you (probably) knew that.

s

Author:  brfransen [ Tue Jan 07, 2020 2:14 pm ]
Post subject:  Re: Directories Keep Coming Back After Deletion

Check the myth_mtc.log and see if any of those dates show.

Author:  sparks [ Tue Jan 07, 2020 8:46 pm ]
Post subject:  Re: Directories Keep Coming Back After Deletion

1) The dirs were back when I checked this morning

2) No reference to those dates in today's myth_mtc.log :cry:

s

Author:  sparks [ Thu Jan 09, 2020 1:39 pm ]
Post subject:  Re: Directories Keep Coming Back After Deletion

I finally figured out what was going on. The linhes backup job reaches a point where, if a remote backup storage is enabled, it copies the backup directory to a remote server. If a remote backup store is not enabled, it copies the backup directory to another system disk. This keeps the system from burying the map with the treasure. You probably see where this is going. I kept deleting the files and folders from the backup of the backup. When the linhes backup job ran, it copied, from the main backup directory, the files I thought I had deleted. *sigh* :oops:

As Emily Litella would say: Never mind.

sparks

Author:  knappster [ Thu Jan 09, 2020 3:02 pm ]
Post subject:  Re: Directories Keep Coming Back After Deletion

Good to see that you got to the "root" of the problem :lol:

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/