Nextcloud: Difference between revisions

imported>Onny
Add systemd-timer sync example
imported>Onny
No edit summary
Line 39: Line 39:
The argument <code>-h</code> will enable syncing hidden files. For demonstration purpose username and password are supplied as an argument. This is a security risk and shouldn't be used in production.
The argument <code>-h</code> will enable syncing hidden files. For demonstration purpose username and password are supplied as an argument. This is a security risk and shouldn't be used in production.


Using [[Home-Manager]] we can create a systemd-timer which automatically runs the sync command every hour for the user <code>myuser</code>.
Using [[Home Manager]] we can create a systemd-timer which automatically runs the sync command every hour for the user <code>myuser</code>.


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>