mirror of
https://github.com/Derisis13/barusu.git
synced 2025-12-06 19:42:48 +01:00
QA: unused import
doc: updated usage recommendation
This commit is contained in:
12
README.md
12
README.md
@@ -12,12 +12,16 @@ Options:
|
|||||||
|
|
||||||
After downloading run in the directory you downloaded barusu to: `python3 setup.py install`
|
After downloading run in the directory you downloaded barusu to: `python3 setup.py install`
|
||||||
|
|
||||||
## Using with cron
|
## Using with cron/anacron
|
||||||
|
|
||||||
In a terminal run: `crontab` (you might need to choose an editor to continue)
|
In a terminal run: `crontab -e` (you might need to choose an editor to continue)
|
||||||
Once you see your crontab in your editor paste the following line at the end:
|
Once you see your crontab in your editor paste the following line at the end:
|
||||||
`0 * * * * barusu`
|
```
|
||||||
This will attempt to run barusu hourly, however it'll only fully run once daily and exit every other time to save system resources.
|
0 3 * * * barusu
|
||||||
|
```
|
||||||
|
This will run barusu every 3:00, but if the computer is off, your daily backup is missed.
|
||||||
|
|
||||||
|
Alternatively you can set up anacron (usually not installed by default)
|
||||||
|
|
||||||
## How it works:
|
## How it works:
|
||||||
|
|
||||||
|
|||||||
1
main.py
1
main.py
@@ -12,7 +12,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import datetime
|
|
||||||
import distutils.spawn
|
import distutils.spawn
|
||||||
import getopt
|
import getopt
|
||||||
import os
|
import os
|
||||||
|
|||||||
Reference in New Issue
Block a user