Advertisement

07.16.2008 at 08:25PM PDT, ID: 23572007
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

Backup users home directories via Rsync

Asked by subz0r69z0r in rSync Backup Utility, Linux, Linux Administration

Tags:

Hi all,

I have an OpenSUSE terminal server and I would like to backup users home directories every day via Cron and Rsync. I am looking for a script or set of scripts that will enable me to do the following:

- Mount a NAS server at the start of the script. An example mount point would be:

/mnt/backup/home/

- Rsync to mirror users /home directories to the NAS based on some sort of username variable. If the user doesn't exist I would like it to be created on the NAS. For example there might be three users on the system: joebloggs, suzyshoe and ritasmith with their home directories at /home/joebloggs etc. Rsync would have to pull the username from the /home/<username> path and use it as a directory path on the NAS

- Depending on the day, it would need to go in to a subdirectory of the username based on the day.

on the NAS it would look like:

//NAS/backup/home/<username>/monday
//NAS/backup/home/<username>/tuesday
...

To save me having to go and create every single <day> folder I would prefer if this was automatically created the first time it is ran for that user.

- After the first lot of backups, subsequent backups on that day would have to overwrite the data that was there the week before.

- Unmount the NAS at the completion of the script.

I hope this makes sense. If I could put this all in one script using some sort of %day% like variable that would be preferable, but if I had to make one for each day that would be fine as long as cron had a way to differentiate between the scripts on different days.

I am fairly new to this so just let me know if you need more information or if I am not making any sense.

At the end of the day I would like to know that I can add a user to the system and automatically a directory for that user will be created on the NAS and their files backed up depending on the day.

Thanks!!
Start Free Trial
[+][-]07.16.2008 at 11:36PM PDT, ID: 22022797

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 03:54PM PDT, ID: 22031143

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 04:16PM PDT, ID: 22031253

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: rSync Backup Utility, Linux, Linux Administration
Tags: Rsync
Sign Up Now!
Solution Provided By: Tintin
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.17.2008 at 04:30PM PDT, ID: 22031307

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 01:19AM PDT, ID: 22033718

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628