Skip to content

Commit

Permalink
addscript
Browse files Browse the repository at this point in the history
  • Loading branch information
niveksan committed Nov 12, 2023
1 parent 5fbbe42 commit 3c12b13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backup-re.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

# set the path to the folder you want to check
folder_path="Nextcloud:/Bitwarden"
folder_path="/data/bitwarden_rs-local-backup/backups"

# get the most recently modified file in the folder
most_recent_file=$(rclone ls -t "$folder_path" | head -1)
# rclone lsl Nextcloud:/Bitwarden --max-age 12h
most_recent_file=$(ls -t "$folder_path" | head -1)

# print the name of the most recently modified file
echo "The most recent file in $folder_path is: $most_recent_file"

0 comments on commit 3c12b13

Please sign in to comment.