Solved

SImple Ubuntu server incremental backup help

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

820 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