Skip to content
Snippets Groups Projects
Commit 5e93e680 authored by Andreas Ellewsen's avatar Andreas Ellewsen
Browse files

Transfer cristin export to production

Timing adjusted to every night
parent 184cba3f
No related branches found
No related tags found
1 merge request!5Transfer cristin export to production
Pipeline #59391 passed
[Unit]
Description=Weekly cristin export upload
Description=Nightly cristin export archive cleanup
[Timer]
OnCalendar=Sun 4:15
AccuracySec=24h
OnCalendar=4:30
AccuracySec=1m
Persistent=true
[Install]
......
......@@ -6,7 +6,7 @@ After=network.target
Type=simple
User=bottint
WorkingDirectory=/home/bottint/cristin/uib/prod
ExecStart=/usr/local/bin/upload.sh
ExecStart=/usr/local/bin/cristin-upload.sh
[Install]
WantedBy=multi-user.target
......
......@@ -5,6 +5,6 @@ set -e
# Upload script
printf 'put -P *.xml' | sftp -b - cristin-export@norzola.uio.no:cristin/
printf 'put -P *.xml' | sftp -i /home/bottint/.ssh/cristin_id_rsa -b - uib-cristin@cristin-sync.uio.no:cristin/
mv ./*.xml archive/
[Unit]
Description=Weekly cristin export upload
Description=Nightly cristin export upload
[Timer]
OnCalendar=Sat 4:15
OnCalendar=4:15
AccuracySec=1m
Persistent=true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment