Solved

SImple Ubuntu server incremental backup help

Posted on 2014-09-06
2
408 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 500 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

622 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