pe46dro / bash-backup-script Goto Github PK
View Code? Open in Web Editor NEWA small script to upload backup tar to an external storage service
License: GNU General Public License v3.0
A small script to upload backup tar to an external storage service
License: GNU General Public License v3.0
Greetings,
I am attempting to use your script ran into a small snag that I can solve. I have a backupscript that backs up two directories on my server and puts them in /backup/bbs with the date appended on the filename. I want to use your script to only take the most recent of each of the two and upload to an ftp server. Here is what I altered in your script;
FILE1=$ ls ~/backup/bbs/mystic* | sort -k1.5 -k1.1,1.2 -k1.3,1.4 | tail -n 1
(this does pull the most recent)
#Directory where thing to backup is located
DIR=$FILE1
this is the output I get running your script
/home/pi/backup/bbs/mystic-29-08-2021.tar.gz
tar: Cowardly refusing to create an empty archive
Try 'tar --help' or 'tar --usage' for more information.
Tar Complete
local: pi_*_2021-09-04.tar.gz: No such file or directory
Remote Backup Complete
Local Backup Removed
So it did Identify the correct file, but I must have something wrong?
Any help appreciated I know you did this a long time ago.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.