Discussion Rclone GDSa Sync Script

peppoonline

Junior Member
Original poster
Donor
Local time
3:39 AM
Dec 24, 2018
18
7
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
 

Cryptids

Respected Member
Staff
Donor
Local time
3:39 AM
Feb 3, 2018
67
15
Why use multiple copies?

Glad you got it working in the end.
 

peppoonline

Junior Member
Original poster
Donor
Local time
3:39 AM
Dec 24, 2018
18
7
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
Original poster
Donor
Local time
3:39 AM
Dec 24, 2018
18
7
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 :)
 

Cthe1

Respected Member
Local time
4:39 AM
Mar 5, 2019
67
30
Denmark
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
Original poster
Donor
Local time
3:39 AM
Dec 24, 2018
18
7
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

Respected Member
Local time
4:39 AM
Mar 5, 2019
67
30
Denmark
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
Original poster
Donor
Local time
3:39 AM
Dec 24, 2018
18
7
I actually got it working last night...

sudo crontab -e

#Sasysnc
0 */2 * * * cd /opt/sasync && sudo ./sasync set.all >> /tmp/mybackup.log
 
  • Like
Reactions: Cthe1

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


Maintenance Donations

Recommend NewsGroups

      Up To a 58% Discount!

Trending