LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 10-07-2018, 11:21 AM   #1
Lucko666
Member
 
Registered: Apr 2017
Location: Olympia WA
Distribution: Mint, Raspbian, Debian, elementaryOS, LinuxLite, Puppy, Manjaro, Armbian
Posts: 72

Rep: Reputation: Disabled
Has anyone figured out how to schedule exact time of Timeshift Backups?


I searched forums, couldn't find this addressed. Has anyone figured out how to schedule the exact time of Timeshift backups? I would like to do it in the middle of the night, but all it allows in its scheduling tab is frequency (month, week, day, hour, etc.) not what time of day. I searched on web and found suggestions but none that actually worked...
 
Old 10-07-2018, 09:11 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
This thread from the Ubuntu forums might help: https://ubuntuforums.org/showthread.php?t=2382953

I understand that timeshift is a frontend for rsync. If you can't find what you want, you could use rsync and schedule a cron job to run at a time of your choice.
 
Old 10-07-2018, 10:19 PM   #3
Lucko666
Member
 
Registered: Apr 2017
Location: Olympia WA
Distribution: Mint, Raspbian, Debian, elementaryOS, LinuxLite, Puppy, Manjaro, Armbian
Posts: 72

Original Poster
Rep: Reputation: Disabled
rsync would be an option but I am trying to make Timeshift work since it is the "preferred" method in Mint now... Also, I tried everything from the Ubuntu forum you showed yesterday, to no avail.
 
Old 10-08-2018, 01:34 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Lucko666 View Post
I tried everything from the Ubuntu forum you showed yesterday, to no avail.
that's a bit thin.
i had a look at that thread, and before i even finished reading the first page, there were 2 or 3 things i'd like you to show detailed reports on.

esp. where it says in timeshift documentation that it can be used via cron.
 
Old 10-08-2018, 05:06 PM   #5
Lucko666
Member
 
Registered: Apr 2017
Location: Olympia WA
Distribution: Mint, Raspbian, Debian, elementaryOS, LinuxLite, Puppy, Manjaro, Armbian
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
that's a bit thin.
i had a look at that thread, and before i even finished reading the first page, there were 2 or 3 things i'd like you to show detailed reports on.

esp. where it says in timeshift documentation that it can be used via cron.
You are probably right, I looked at all the cron setup files I could find in etc/cron.d, cron.daily, hourly, monthly, weekly. All I found was a file called timeshift-hourly under etc/cron.d containing:

SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""

0 * * * * root timeshift --check --scripted

But timeshift is running daily, not hourly. None of the files under cron.daily have any reference to timeshift.

Does this make any sense?
 
Old 10-08-2018, 05:24 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
How is this response not sufficient ?.
 
1 members found this post helpful.
Old 10-08-2018, 06:17 PM   #7
Lucko666
Member
 
Registered: Apr 2017
Location: Olympia WA
Distribution: Mint, Raspbian, Debian, elementaryOS, LinuxLite, Puppy, Manjaro, Armbian
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
How is this response not sufficient ?.
That looks like my best answer, thanks. I have done that and will see what it does next day or so. I was confused because it was under "hourly" - apparently timeshift runs hourly but only backs up according to internal settings. Running it just once a day will I hope force it to backup at that point in time.

As for your tagline, I know it's all-purpose, but I just gotta add, "I know, I was TRYING to B-A-C-K-U-P!"
 
Old 10-09-2018, 12:11 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ again, there's MANY possible solutions in that link (and further links).

Quote:
Originally Posted by Lucko666 View Post
0 * * * * root timeshift --check --scripted

But timeshift is running daily, not hourly. None of the files under cron.daily have any reference to timeshift.

Does this make any sense?
yes, it is CHECKING hourly. probably checking if it's time for the next backup already.
 
Old 10-10-2018, 06:03 PM   #9
Lucko666
Member
 
Registered: Apr 2017
Location: Olympia WA
Distribution: Mint, Raspbian, Debian, elementaryOS, LinuxLite, Puppy, Manjaro, Armbian
Posts: 72

Original Poster
Rep: Reputation: Disabled
OK, by using the link kindly offered by syg00 [https://github.com/teejee2008/timeshift/issues/64] I was able to solve this. I now get my updates at 3AM as desired. Apparently, timeshift by default uses an hourly cron job to start itself, and checks then to see if the scheduled backup has been done. It must have been deciding it needed to do so at 9 am each day. By removing the cron job for hourly and adding a daily one to be run at 3am, I get what I wanted.

Thanks for the help!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
set exact time according to the second system vjlxmi Linux - Newbie 11 09-23-2014 09:15 AM
shut down time in time schedule task fa_khan50 Linux - Newbie 3 02-08-2008 01:17 PM
How to schedule startup time wolfipa Linux - General 4 09-01-2006 10:55 PM
synchronizing exact time on the network lieuquocdat Linux - General 4 07-20-2006 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration