Skip to content

Commit

Permalink
Enable rsync full export to taz server
Browse files Browse the repository at this point in the history
It was set up for scooby server (RIP), so make changes to re-enable full export via rsync on taz (new ftp).

Note: syntax changed a bit because taz is using rrsync helper on its side, the `dummy` target is not needed anymore.
On taz, a user exists for this purpose called `ftp-data`.
  • Loading branch information
zas committed Oct 5, 2015
1 parent 65f54a1 commit d5427ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/rsync-fullexport-files
Expand Up @@ -11,8 +11,8 @@ LOCAL_DIR=$FTP_DATA_DIR/fullexport

if [ "$RSYNC_FULLEXPORT_SERVER" ]
then
rsync -e "ssh -i $HOME/.ssh/rysnc-data-fullexport" -av --delete --exclude='latest-is*' $LOCAL_DIR/ $RSYNC_FULLEXPORT_SERVER:dummy
rsync -e "ssh -i $HOME/.ssh/rysnc-data-latest" -av $LOCAL_DIR/latest* $RSYNC_FULLEXPORT_SERVER:dummy
rsync -e "ssh -i $HOME/.ssh/rysnc-data-fullexport" -av --delete --exclude='latest-is*' $LOCAL_DIR/ $RSYNC_FULLEXPORT_SERVER:
rsync -e "ssh -i $HOME/.ssh/rysnc-data-latest" -av $LOCAL_DIR/latest* $RSYNC_FULLEXPORT_SERVER:
fi

# eof rsync-fullexport-files
2 changes: 1 addition & 1 deletion lib/DBDefs/Default.pm
Expand Up @@ -479,7 +479,7 @@ sub BACKUP_GROUP { "musicbrainz" }
sub BACKUP_DIR_MODE { 700 }
sub BACKUP_FILE_MODE { 600 }

sub RSYNC_FULLEXPORT_SERVER { 'ftpowner@scooby.localdomain' }
sub RSYNC_FULLEXPORT_SERVER { 'ftp-data@taz.localdomain' }
sub RSYNC_REPLICATION_SERVER { 'metabrainz@sakura.localdomain' }

1;
Expand Down

0 comments on commit d5427ad

Please sign in to comment.