A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/orgrim/pg_back/commit/27890e9aa30b66339935d53f831584a771328bce below:

add systemd timer for Debian · orgrim/pg_back@27890e9 · GitHub

File tree Expand file treeCollapse file tree 5 files changed

+46

-0

lines changed

Filter options

Expand file treeCollapse file tree 5 files changed

+46

-0

lines changed Original file line number Diff line number Diff line change

@@ -49,6 +49,15 @@ nfpms:

49 49

- src: pg_back.conf

50 50

dst: /etc/pg_back/pg_back.conf

51 51

type: "config|noreplace"

52 + 53 +

- src: contrib/systemd/pg_back@.service

54 +

dst: /lib/systemd/system/pg_back@.service

55 +

packager: deb

56 + 57 +

- src: contrib/systemd/pg_back@.timer

58 +

dst: /lib/systemd/system/pg_back@.timer

59 +

packager: deb

60 + 52 61

overrides:

53 62

deb:

54 63

dependencies:

Original file line number Diff line number Diff line change

@@ -10,6 +10,7 @@

10 10

* Upload files to AWS S3

11 11

* Upload files to a remote host with SFTP

12 12

* Upload files to Google Cloud Storage (GCS)

13 +

* Add a systemd timer for Debian in the package generated by goreleaser

13 14 14 15 15 16

## pg_back 2.0.1

Original file line number Diff line number Diff line change

@@ -11,3 +11,4 @@ Jean-Marie Renouard

11 11

Florent Jardin

12 12

Stefan Fercot

13 13

Thibaud Walkowiak

14 +

Gounick

Original file line number Diff line number Diff line change

@@ -0,0 +1,24 @@

1 +

[Unit]

2 +

Wants=postgresql@%i.service

3 +

AssertPathExists=/etc/pg_back/%I/pg_back.conf

4 +

Description=Simple backup for PostgreSQL

5 +

Documentation=https://github.com/orgrim/pg_back

6 +

After=postgresql@%i.service

7 +

RequiresMountsFor=/etc/pg_back/%I /var/lib/postgresql/%I

8 + 9 +

[Service]

10 +

# Execute pre and post scripts as root, otherwise it does it as User=

11 +

PermissionsStartOnly=true

12 +

ExecStartPre=/usr/bin/install -m 0750 -o postgres -g postgres -d /var/backups/postgresql/%I

13 + 14 +

ExecStart=/usr/bin/pg_back -c /etc/pg_back/%I/pg_back.conf

15 +

User=postgres

16 +

Group=postgres

17 + 18 +

IOSchedulingClass=best-effort

19 +

IOSchedulingPriority=7

20 +

SyslogIdentifier=pg_back@%i

21 +

Type=oneshot

22 + 23 +

[Install]

24 +

WantedBy=multi-user.target

Original file line number Diff line number Diff line change

@@ -0,0 +1,11 @@

1 +

[Unit]

2 +

Description=Daily PostgreSQL backup

3 +

AssertPathExists=/etc/pg_back/%I/pg_back.conf

4 + 5 +

[Timer]

6 +

OnCalendar=*-*-* 4:00:00

7 +

AccuracySec=30m

8 +

Persistent=true

9 + 10 +

[Install]

11 +

WantedBy=postgresql@%i.service

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4