Solved

SImple Ubuntu server incremental backup help

Posted on 2014-09-06
2
372 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 50

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now