Changes

From SME Server
Jump to navigationJump to search
1,384 bytes added ,  19:13, 9 July 2011
m
no edit summary
Line 28: Line 28:  
# create location for mirror
 
# create location for mirror
 
# create new user to perform sync
 
# create new user to perform sync
 +
#* If you are running sme you will need to enable bash for this user<br><tt>db accounts setprop ''{user}'' Shell /bin/bash<br>signal-event user-modify ''{user}''</tt>
 
# download ftpsync script
 
# download ftpsync script
 
#* <tt>wget http://contribs.org/ftpsync.tgz</tt>
 
#* <tt>wget http://contribs.org/ftpsync.tgz</tt>
 
# extract tarball in users directory
 
# extract tarball in users directory
#* <tt>tar zxvf ftpsync.tgz</tt>
+
#* <tt>tar zxof ftpsync.tgz</tt>
 
# append the keys to authorized_keys file
 
# append the keys to authorized_keys file
 
#* <tt>cat .ssh/pushmirror-*.pub >> .ssh/authorized_keys</tt>
 
#* <tt>cat .ssh/pushmirror-*.pub >> .ssh/authorized_keys</tt>
Line 53: Line 54:  
----
 
----
 
The scripts should keep the 14 most recent sync attempts and will email (root by default) if there are any errors that occur during the sync attempt.
 
The scripts should keep the 14 most recent sync attempts and will email (root by default) if there are any errors that occur during the sync attempt.
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
----
 +
@Shad:
 +
* Is there a way to exclude parts from the sync? Like the 'obsoletes' folder.
 +
* Can a current mirror be used/converted without having to sync it all again?<br> (reading ftpsync.conf things seem not to hopeful: ''"Everything else that might have happened to be in there WILL BE GONE after the mirror sync!"'')
 +
--[[User:VIP-ire|Daniel]]: If you already have a copy of the mirror, you won't have to download everything again, it's still rsync based
 +
* In the above instructions, under: "Steps to configure push sync" > Item 6 > <tt>{path to mirror}</tt> -- seems out of place
 +
--[[User:Jester|jester]] 02:59, 8 July 2011 (MDT)
 +
* The Item 6 above is correct.  You need to have the mirror directory owned by the user that will be performing the sync.
 +
* As far as excluding obsoletes, yes you can do that.  You just need to add the "--exclude obsolete/" to the EXCLUDE property and uncomment it.
 +
* The warning in the ftpsync.conf file was there originally.  It just means that anything in there that isn't part of the mirror upstream will be deleted.
 +
<small>— [[User:Slords|Slords]] ([[User talk:Slords|talk]] • [[Special:Contributions/Slords|contribs]]).</small> 08:41, 8 July 2011 (MDT)
board
414

edits

Navigation menu