Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SImple Ubuntu server incremental backup help

Posted on 2014-09-06
2
Medium Priority
?
441 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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month7 days, 9 hours left to enroll

824 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