Changes

From SME Server
Jump to navigationJump to search
1,977 bytes added ,  14:14, 12 June 2007
no edit summary
Line 434: Line 434:       −
=== Files ===
+
=== FAQ ===
<pre>
+
 
/etc/e-smith/events/actions/affa-make-cronjobs
+
'''Can I use Affa to backup a SME 6 server?'''<br>
/etc/e-smith/events/post-upgrade/S90affa-make-cronjobs
+
To backup a SME 6 server set the property 'rsync--inplace' to 'no' and install the perl-TimeDate package on the SME 6 box. The perl-TimeDate package is needed by the watchdog script running on the SME 6. Use the RPM from DAG: [http://dag.wieers.com/rpm/packages/perl-TimeDate/perl-TimeDate-1.16-0.rh73.dag.noarch.rpm perl-TimeDate-1.16-0.rh73.dag.noarch.rpm]<br>
/etc/e-smith/templates/etc/cron.d/affa-status/00run
+
You cannot use the RPMCheck property.
/etc/e-smith/templates/etc/cron.d/affa/00jobs
+
 
/etc/logrotate.d/affa
+
 
/sbin/e-smith/affa
+
'''Can I use Affa to backup Windows machines?'''<br>
/sbin/e-smith/affa-rpmlist.sh
+
Yes. You need a ssh daemon und the rsync installed on the Windows box. Cygwin hab been reported not to work. The rsync processes often tend to hang up. Other products may work, but there are no experiences yet.
/usr/lib/affa/jobconfig-sample.pl
+
Alternatvely you can smbmount the Windows disk to a directory on a SME server and setup a job to backup this directory.
/usr/lib/affa/postJobCommand-sample.pl
+
 
/usr/lib/affa/preJobCommand-sample.pl
+
<code>/bin/mount -t cifs 192.168.1.65://MYWINPC/C$ /mnt/mywinpc/ -o username=Adminstrator,password=xxxxxx</code><br>
/usr/lib/affa/watchdog.template
+
 
/usr/man/man1/affa.1.gz
+
If the Affa server is local to the Windows domain, you alternatively can use the Affa automount properties<br>
</pre>
+
<code>AutomountDevice=>'192.168.1.65://MYWINPC/C$'<br>
 +
AutomountPoint=>'/mnt/mywinpc/'<br>
 +
AutomountOptions=>'-t cifs -o username=Adminstrator,password=xxxxxx'</code><br>
 +
 
 +
Note: Affa cannot preserve the Windows ACLs. After a restore you must set owner and groups manually.
 +
 
 +
 
 +
'''How can I move a backup archive from my production server in a remote branch office to the Affa server using an USB disk? I want to avoid to download the first full backup over the internet.'''<br>
 +
Install Affa on your production server, connect and mount the USB disk. Setup a job to write the archive to the USB disk. After the job run, connect the USB disk to your Affa server and setup the job in the same way. Use the setup script from the archive directory. You only need to change the remoteHostName property. Now use the --move-archive option to move the archive to the local disk. If not already done, send the public key to your production server. You're done.
 +
 
 +
 
 +
'''How do I backup tow SME servers behind a firewall?'''<br>
 +
First you need to configure port forwardings for the ssh service on your firewall. Use a non-standard port ,e.g 2200->22, for your second server. Setup a job on your Affa server for each of your production servers. Set up the job property sshPort=2200 for second server.
   −
=== Additional information ===
     −
==== Backup an old SME 6 server ====
  −
To backup a SME 6 server set the property 'rsync--inplace' to 'no' and install the perl-TimeDate package on the SME 6 box. The perl-TimeDate package is needed by the watchdog script running on the SME 6. Use the RPM from DAG: [http://dag.wieers.com/rpm/packages/perl-TimeDate/perl-TimeDate-1.16-0.rh73.dag.noarch.rpm perl-TimeDate-1.16-0.rh73.dag.noarch.rpm]
      +
=== Additional information ===
 
==== Performance ====
 
==== Performance ====
   Line 484: Line 494:  
'''Note:''' The last action of a job run is to remove the oldest backup, e.g. if archive scheduled.11 exists and you have set the scheduledKeep property to 12, then it must be deleted. This can take a significant long time, which increases the total job execution time.
 
'''Note:''' The last action of a job run is to remove the oldest backup, e.g. if archive scheduled.11 exists and you have set the scheduledKeep property to 12, then it must be deleted. This can take a significant long time, which increases the total job execution time.
   −
=== Changelog ===
+
==== Changelog ====
 
<pre>
 
<pre>
 
* Tue Jun 12 2007 Michael Weinberger
 
* Tue Jun 12 2007 Michael Weinberger
Line 665: Line 675:  
</pre>
 
</pre>
   −
=== Source RPM ===
+
==== Files ====
 +
<pre>
 +
/etc/e-smith/events/actions/affa-make-cronjobs
 +
/etc/e-smith/events/post-upgrade/S90affa-make-cronjobs
 +
/etc/e-smith/templates/etc/cron.d/affa-status/00run
 +
/etc/e-smith/templates/etc/cron.d/affa/00jobs
 +
/etc/logrotate.d/affa
 +
/sbin/e-smith/affa
 +
/sbin/e-smith/affa-rpmlist.sh
 +
/usr/lib/affa/jobconfig-sample.pl
 +
/usr/lib/affa/postJobCommand-sample.pl
 +
/usr/lib/affa/preJobCommand-sample.pl
 +
/usr/lib/affa/watchdog.template
 +
/usr/man/man1/affa.1.gz
 +
</pre>
 +
 
 +
==== Source RPM ====
 
[http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Src/ Affa SRPM]
 
[http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Src/ Affa SRPM]
      −
=== Acronym ===
+
==== Acronym ====
 
Affa stands for '''A'''utomatische '''F'''estplatten '''F'''ern'''a'''rchivierung
 
Affa stands for '''A'''utomatische '''F'''estplatten '''F'''ern'''a'''rchivierung
 
[[Category: Contrib]]
 
[[Category: Contrib]]
 
----
 
----
501

edits

Navigation menu