[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

what backup system is my linux box using

I recently took over managing a linux server, a set of two actually, one for the web server and one for the mysql server. I'm a little rusty on linux command line, since I haven't had to use that for a while, but I only have ssh access to the servers, so I'm relearning.

I can see that there are backups being created on a mounted network share, but I'm having trouble finding out where in the system the script is that is running the backups, what backup program they are using, and how often it runs.

I've looked in the cron folder, the only one with anything in it is the cron.weekly, but none of those files seem to have anything to do with backup.

I'm hoping someone can point me in the right direction of how to discover what is being used to create the backups?


I've also been searching through the init.d files to see if anything jumps out. I also noticed that the backups are not compressed, it's just the files and directories copied over to the mounted share, that might be a clue? I've been looking through the installed software list, nothing jumps out at me, but it's a long list. I'm attaching the list in case someone more familiar might see something.

programs-installed.txt
0
musickmann
Asked:
musickmann
  • 3
  • 2
1 Solution
 
sugunakarCommented:
try to find out the extension of the backup files. If its .tar then it means that tar command is used to create the backup files. Then you can search in the system to find out from which file that command is being fired.
from root login use below command to find which file contains that file
find / -name * -exec  grep tar  {} \ ;
this will give the file that is being run with tar command.

this is just an example, so like this you could use any command like cpio or some other program to take backup.

so if you hav the extension, then you can find out more details.


0
 
PapertripCommented:
There are a lot of ways this can be happening, but first let's check other places that usually have cron files.

It looks like you already checked everything in /etc/cron.*/*
Another place to look for user cronjobs is /var/spool/cron/

If the backup files are owned by a non-root user, that could help point you in the right direction as well -- just comb through their homedir.

Try that stuff first then let's see where we stand.
0
 
musickmannAuthor Commented:
Thanks sugunakar...
I think I edited the question since you read it, the backups are not compressed, they are just copies of the directories, and there aren't multiples, so it's overwriting, not adding additional copies. Also, it's going to a windows share mount, so I don't know about who owns the files.

Papertrip:
I looked in the location you suggested, there is a file there that contains a directive to run a shell script that appears to do the backups and some other things, so I think you are the winner here! Thanks so much!
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
musickmannAuthor Commented:
Awesome response and quick!
0
 
PapertripCommented:
@musickmann

Good to hear!

Some advice -- instead of editing your original question, you should add replies to the thread instead with any updates (unless it's like a minute after the initial submission).  This will make it easier for the experts, and will get accurate answers for you sooner.
0
 
musickmannAuthor Commented:
Thanks. It was pretty close to the original submission, so I went for the edit this time, but I'll keep that in mind for the future.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now