<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: backup and restore linux using rsync in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/backup-and-restore-linux-using-rsync/m-p/5290329#M81387</link>
    <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you use ssh (with auto-login) to execute rsync backup? OR, do you use the rsyncd server with no password authentication?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used to backup using the latter method, but I found this to be a security issue so I use the former (the ssh method).&amp;nbsp; Anyways, here's an example simple rsync script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;BR /&gt;#Copies all of the following folders from remote computer (remote-pc) to local computer (local-pc)&lt;BR /&gt;&lt;BR /&gt;now=`/bin/date`&lt;BR /&gt;export now&lt;BR /&gt;&lt;BR /&gt;echo "================================================="&amp;nbsp; | tee -a /var/log/start-rsync-backup.log&lt;BR /&gt;echo "$now Begin rsync Backup" | tee -a /var/log/start-rsync-backup.log﻿&lt;BR /&gt;echo "================================================="&amp;nbsp; | tee -a /var/log/start-rsync-backup.log﻿&lt;BR /&gt;rsync -avzp -e "ssh -i /home/foobaruser/.ssh/foobaruser-key" remote-pc.remotelocation::/home/foobaruser/Documents /u/rsync-backups/local-pc/backupdir/ | tee -a /var/log/start-start-rsync-backup.log﻿&lt;BR /&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The local user ("foobaruser" in this example) must exist on the remote pc as well.&amp;nbsp; The ssh keys from the remote and local user must also exist in the remote and local $HOME/.ssh/authorized_keys file for password less ssh operation.&amp;nbsp; Google "ssh password less" and see resources online on how to generate your ssh keys.&amp;nbsp; Once the keys are installed correctly on both local and remote servers, you can put your rsync backup script into cron as an automatic job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2011 14:37:32 GMT</pubDate>
    <dc:creator>eanebab</dc:creator>
    <dc:date>2011-08-03T14:37:32Z</dc:date>
    <item>
      <title>backup and restore linux using rsync</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-and-restore-linux-using-rsync/m-p/4837965#M81386</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for scripts to backup and restore the whole linux over network using rsync.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2011 20:38:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-and-restore-linux-using-rsync/m-p/4837965#M81386</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-07-24T20:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: backup and restore linux using rsync</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-and-restore-linux-using-rsync/m-p/5290329#M81387</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you use ssh (with auto-login) to execute rsync backup? OR, do you use the rsyncd server with no password authentication?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used to backup using the latter method, but I found this to be a security issue so I use the former (the ssh method).&amp;nbsp; Anyways, here's an example simple rsync script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;BR /&gt;#Copies all of the following folders from remote computer (remote-pc) to local computer (local-pc)&lt;BR /&gt;&lt;BR /&gt;now=`/bin/date`&lt;BR /&gt;export now&lt;BR /&gt;&lt;BR /&gt;echo "================================================="&amp;nbsp; | tee -a /var/log/start-rsync-backup.log&lt;BR /&gt;echo "$now Begin rsync Backup" | tee -a /var/log/start-rsync-backup.log﻿&lt;BR /&gt;echo "================================================="&amp;nbsp; | tee -a /var/log/start-rsync-backup.log﻿&lt;BR /&gt;rsync -avzp -e "ssh -i /home/foobaruser/.ssh/foobaruser-key" remote-pc.remotelocation::/home/foobaruser/Documents /u/rsync-backups/local-pc/backupdir/ | tee -a /var/log/start-start-rsync-backup.log﻿&lt;BR /&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The local user ("foobaruser" in this example) must exist on the remote pc as well.&amp;nbsp; The ssh keys from the remote and local user must also exist in the remote and local $HOME/.ssh/authorized_keys file for password less ssh operation.&amp;nbsp; Google "ssh password less" and see resources online on how to generate your ssh keys.&amp;nbsp; Once the keys are installed correctly on both local and remote servers, you can put your rsync backup script into cron as an automatic job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2011 14:37:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-and-restore-linux-using-rsync/m-p/5290329#M81387</guid>
      <dc:creator>eanebab</dc:creator>
      <dc:date>2011-08-03T14:37:32Z</dc:date>
    </item>
  </channel>
</rss>

