DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th May 2022
hd77 hd77 is offline
Shell Scout
 
Join Date: Jan 2022
Posts: 97
Default openbsd, rclone, crontab

hello

as root, I add a such line in crontab :
*/5 * * * * echo "aa" >> /tmp/aaa

obviously, it works.
now I just replace the echo.... part with the following one :
*/4 * * * * /usr/local/bin/rclone sync -P --no-check-certificate -P --exclude ".*/**" /home/test/abc/ remote:/abc/

(".*/**" allows to take files and subdir into the dir, without the .hidden files/folders)


it doesnt works, rclone doesnt launches. If I do exactly that command just in term, by copy/paste, it works. Only under crontab, it doesnt..

how could I solve this?
Reply With Quote
  #2   (View Single Post)  
Old 11th June 2022
hd77 hd77 is offline
Shell Scout
 
Join Date: Jan 2022
Posts: 97
Default

Quote:
Originally Posted by harrollld View Post
hello

as root, I add a such line in crontab :
*/5 * * * * echo "aa" >> /tmp/aaa

obviously, it works.
now I just replace the echo.... part with the following one :
*/4 * * * * /usr/local/bin/rclone sync -P --no-check-certificate -P --exclude ".*/**" /home/test/abc/ remote:/abc/

(".*/**" allows to take files and subdir into the dir, without the .hidden files/folders)


it doesnt works, rclone doesnt launches. If I do exactly that command just in term, by copy/paste, it works. Only under crontab, it doesnt..

how could I solve this?
finally found why :
had to put brackets to remote:"path"
but mainly to precise conf file, whom is different wih default rclone launched dircetly, instead of rclone launched through crontab schedule :
2022/05/29 00:16:01 NOTICE: Config file "/var/log/.config/rclone/rclone.conf" not found - using defaults
had to precise conf file wih --config /root/.config/rclone/rclone.conf (path with rclone dircetly without crontab)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab leave0 OpenBSD General 2 30th December 2020 06:03 AM
Editor for crontab? beavers OpenBSD General 3 14th February 2018 05:10 PM
default crontab fbroce OpenBSD Installation and Upgrading 13 13th September 2010 09:20 PM
Crontab won't run script Petrocelli08 FreeBSD General 4 7th March 2009 04:19 AM
Crontab not working beandip FreeBSD General 6 6th August 2008 08:33 PM


All times are GMT. The time now is 12:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick