Update metalog.sh

This commit is contained in:
ZizzyDizzyMC 2021-02-10 19:44:17 -05:00
parent 29eb962d9a
commit f49f553f18
1 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
#!bin/bash #!/bin/bash
# For setting up cron with a logging function for metadata only. # For setting up cron with a logging function for metadata only.
# First argument is Linx Meta Source Directory. # First argument is Linx Meta Source Directory.
# Second argument is the Linx Meta Log Directory # Second argument is the Linx Meta Log Directory
# Add to crontab with "crontab -e" # Add to crontab with "crontab -e"
# Paste "*/1 * * * * /path/to/metalog.sh /path/to/meta/source /path/to/meta/log # Paste "*/1 * * * * /path/to/metalog.sh /path/to/meta/source/ /path/to/meta-log"
# Change it to source and log directory paths. # Change it to source and log directory paths.
# The slash after source/ is important. It means everyhitng *inside* the source directory.
rsync -a ${1} ${2} rsync -a ${1} ${2}