Seems I have to use real paths?
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -2,8 +2,8 @@ steps:
|
|||||||
- name: sanity-check
|
- name: sanity-check
|
||||||
image: alpine
|
image: alpine
|
||||||
volumes:
|
volumes:
|
||||||
- /obsidian:/obsidian
|
- "/Users/jthor/Obsidian/My Vault:/obsidian"
|
||||||
- /backup:/backup
|
- "/Volumes/What/backup:/backup"
|
||||||
commands:
|
commands:
|
||||||
- echo "Listing mount points..."
|
- echo "Listing mount points..."
|
||||||
- ls -ld /obsidian /backup
|
- ls -ld /obsidian /backup
|
||||||
@@ -12,8 +12,8 @@ steps:
|
|||||||
- name: backup-on-push
|
- name: backup-on-push
|
||||||
image: alpine
|
image: alpine
|
||||||
volumes:
|
volumes:
|
||||||
- /obsidian:/obsidian
|
- "/Users/jthor/Obsidian/My Vault:/obsidian"
|
||||||
- /backup:/backup
|
- "/Volumes/What/backup:/backup"
|
||||||
commands:
|
commands:
|
||||||
- tar czf /backup/obsidian-$(date +%F).tar.gz /obsidian
|
- tar czf /backup/obsidian-$(date +%F).tar.gz /obsidian
|
||||||
when:
|
when:
|
||||||
@@ -22,8 +22,8 @@ steps:
|
|||||||
- name: backup-on-cron
|
- name: backup-on-cron
|
||||||
image: alpine
|
image: alpine
|
||||||
volumes:
|
volumes:
|
||||||
- /obsidian:/obsidian
|
- "/Users/jthor/Obsidian/My Vault:/obsidian"
|
||||||
- /backup:/backup
|
- "/Volumes/What/backup:/backup"
|
||||||
commands:
|
commands:
|
||||||
- tar czf /backup/obsidian-$(date +%F).tar.gz /obsidian
|
- tar czf /backup/obsidian-$(date +%F).tar.gz /obsidian
|
||||||
when:
|
when:
|
||||||
|
|||||||
Reference in New Issue
Block a user