What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Discussion Rclone GDSa Sync Script

peppoonline

Junior Member
Donor
PG Version
8.7.5
Mount Type
Blitz Unencrypted
Server Type
Remote - Dedicated Server
Hey guys,

as I am using multiple online copies of my ISO repository, I'd like to keep them in sync.
At the moment I am using rclone sync via a Windows VM in task planner.

But I keep hitting the 750GB limit....

Does anybody have a solution which utilizes GDSa's? Perhaps even a docker, so I could retire my Windows VM ? :)

Any help appreciated.
Dominik
 

peppoonline

Junior Member
Donor
I like Backups :)
If I learned something in my 15 years in IT, then it's the value of Backups :)

I currently have my files (130TB) in 4 redundant points. 3x online and 1x offline in a NAS cluster.
 

peppoonline

Junior Member
Donor
Little Follow-Up to you fellow scripters.... I can't get the sasync thing to work with crontab.

In my putty shell it works if:
cd /opt/sasync
./sasync set.all

There are different sets to call where the parameters are stored. So the script "sasync" has to call these "set files" to work.

How can I pack it into one line or to work with crontab in common?

Heeelp :)
 
Assists Greatly with Development Costs

Cthe1

Full Member
Try testing if the script is executed at all :)
There should be no problems with executing scripts with external calls, aslong cron have the proper permissions.
 

peppoonline

Junior Member
Donor
Ya, that's my main problem... I can run in with these 2 steps, or if I'm in the working directory /opt/sasync, but can't mange to get it working in one line....
 

Cthe1

Full Member
Please show me the cron file. Think it has something to do with the option you are using and not using ""

Have you remembered to chmod the file with execution?

Normally i will use something like this, so i have the logfiles in file format and not in mailbox.
Code:
*/10 * * * * "/opt/sasync/sasync set.all"  >> /var/log/script_output.log 2>&1
 

peppoonline

Junior Member
Donor
I actually got it working last night...

sudo crontab -e

#Sasysnc
0 */2 * * * cd /opt/sasync && sudo ./sasync set.all >> /tmp/mybackup.log
 
Assists Greatly with Development Costs

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads


Development Donations

 

Top NZB NewsGroups!

Members - Up To a 58% Discount!

Trending

Online statistics

Members online
9
Guests online
121
Total visitors
130
Top