Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SImple Ubuntu server incremental backup help

Posted on 2014-09-06
2
Medium Priority
?
418 Views
Last Modified: 2014-09-07
I am trying to pull a backup from an Ubuntu server using ssh. I understand that it is not a good practice to enable the root user and passwordless ssh to the server root account.
Instead I should create a create a user with limited scope. How do I do that and still be able to copy all the files in /etc/, etc (which I imagine are readable only by root)?
I guess I could make a user and put him in the group "root," but wouldn't that defeat the purpose?

Thank you.
0
Comment
Question by:Jeff swicegood
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 51

Accepted Solution

by:
Steve Bink earned 2000 total points
ID: 40308318
Create a user specifically for this copy.  Also, create a "backupcopy" group, and make sure your new user is part of it.  Create a cron job, run as root, to collect all the information you need and tar it.  The cron job should chown the tar file to root:backupcopy, and chmod 640.  It should also place the tar somewhere the new user can read.  Use the new user's credentials to pull the tar to your backup server.

Finally, make sure your cron job has some basic file management.  Delete the old files as soon as you know they are safe on the remote server.
0
 
LVL 1

Author Closing Comment

by:Jeff swicegood
ID: 40309162
Thank you. I see that this will work.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question