LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2013, 05:12 AM   #1
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,148

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Question SVN Backup


hi guys, i have this on output on the SVN backup.

/var/backup/2013-09-25_01.00.03.558571.serverx.inc
/var/backup/2013-09-26_01.00.13.320622.serverx.ful

any ideas how the svn backup is being done?

i didn't setup this server and don't know much about SVN.

any input is greatly appreciated.
 
Old 09-26-2013, 08:34 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Looks like a cron job running at 1am, possibly using 'svnadmin dump <repo> ...' command. You could run:

Code:
file /var/backup/2013-09-25_01.00.03.558571.serverx.inc
file /var/backup/2013-09-26_01.00.13.320622.serverx.ful
.. to determine what kind of files they are, or see if they match this format.
 
Old 09-29-2013, 11:12 PM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,148

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
hi kbp, thanks for the reply.

i've checked crontab -l, the backup is only pointing to a tape.

i've checked also /etc/cron.hourly also nothing there..

i don't know how the previous IT guys done the backup for the svn settings.

i've also search for the shell script, but can't find any backup script..

any other ideas?

Thanks.
 
Old 09-29-2013, 11:53 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Who owns the files? .. does that tell you whose cron job it might be? Is there any backup agent software installed such as NetBackup or any processes belonging to backup agents ?

Also check /etc/cron.d and /etc/cron.daily for a job.

Did you work out what kind of files they were?

Last edited by kbp; 09-29-2013 at 11:55 PM.
 
Old 09-30-2013, 01:15 AM   #5
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,148

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
hi kbp, sorry it's not a file.

it's all directories. the owner is admin, but i check the /home directory i can't find a user admin.

drwxr-x--- 2 root admin 224 2013-09-23 01:00 2013-09-23_01.00.03.486696.serverx.inc
drwxr-x--- 2 root admin 224 2013-09-24 01:00 2013-09-24_01.00.03.831652.serverx.inc
drwxr-x--- 2 root admin 224 2013-09-25 01:00 2013-09-25_01.00.03.558571.serverx.inc
drwxr-x--- 2 root admin 200 2013-09-26 01:28 2013-09-26_01.00.13.320622.serverx.ful

on /home there is no admin.
root@serverx:/var/backup# cat /etc/passwd | grep admin
admin:x:10011:121::/home/admin:/bin/sh

why is it there is no admin in home directory?

please help. thanks.
 
Old 09-30-2013, 03:34 AM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,148

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
no instance of backup agent software
 
Old 09-30-2013, 03:50 AM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,148

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
from web search found this snippet to check crontab for all users but no luck:

for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done
 
Old 09-30-2013, 04:30 AM   #8
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,148

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
found it, it's on /etc/cron.d/sbackup and it links to a script in /usr/sbin/sbackupd

sbackup contents:

0 1 * * * root if [ -x /usr/sbin/sbackupd ]; then /usr/sbin/sbackupd; fi;

the time is 1am and the backup files is also 1AM (able to track script through the time)

the sbackupd, is a very long script.
 
Old 09-30-2013, 04:32 AM   #9
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,148

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
sbackupd script is used to backup, file inside the directories has .tgz extension.

question, can i just use tar to restore the backup?

thanks.
 
Old 09-30-2013, 04:38 AM   #10
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,148

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
i think i found the answer: https://help.ubuntu.com/community/Ba...pleBackupSuite

Would that be the right one?
 
Old 10-01-2013, 02:06 AM   #11
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,148

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
just for update, i add my user account on /etc/sudoers
then I used the GUI Simple Backup Suite.

I already have the rights to backup and restore, and able also to view the backup settings.

thanks kbp for your help

Last edited by JJJCR; 10-01-2013 at 02:08 AM. Reason: edit
 
Old 10-01-2013, 03:22 AM   #12
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Sorry, I wasn't around yesterday but glad you sorted it out
 
  


Reply

Tags
backup, svn



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup / restore script - for svn dlugasx Linux - Software 1 02-13-2009 07:16 PM
SVN Server BAckup ? ajeetraina Linux - Server 1 08-02-2007 02:34 PM
SVN Backup Script? ajeetraina Programming 2 08-02-2007 11:00 AM
Remote SVN Backup Issue ajeetraina Linux - Server 4 06-29-2007 07:27 AM
Backup SVN to USB Brive BradMofo Linux - Hardware 2 09-29-2006 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration