ProfouzorsLinx/metalog.sh

11 lines
449 B
Bash
Raw Normal View History

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