-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[doc] ./gitea dump doesn't allows to specify backup destination #2436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
I think WIP PR #1637 will implement this? |
@lafriks Not exactly:
--target will allow to specify where to land the zip, but still no luck to set the filename. |
Should be easy enough to change |
Was this functionality removed?
|
@Quinity to be honest IDK, I ended using awk to extract the dump filename but a --target or something similar will be much more appreciated. |
I recently tried tackling this using cron on my debian machine, but I had no luck. However, I found great sucess using a systemd service/timer and setting the The service file: [Unit]
Description=Gitea Dump
[Service]
Type=simple
User=git
Group=git
WorkingDirectory=/var/gitea/backup
ExecStart=/usr/local/bin/gitea dump -c /etc/gitea/app.ini
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target Timer: [Unit]
Description=Daily Gitea Dump
[Timer]
# See systemd.time(7) for time format
OnCalendar=*-*-* 05:00:00
Persistent=true
[Install]
WantedBy=timers.target And the output of $ ls /var/gitea/backup
gitea-dump-1529562686.zip |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
|
So this is a documentation problem not a feature. |
I don't know. Does --target allow you to specify the filename now? That was the original feature request as I understand it. At least that's what I would want for my use-case. |
@lunny I was just mentioning the missing documentation, in addition to the feature request discussed here - I think it's a good opportunity to fix the documentation. I don't think I would appreciate this change, because I run dumps from a cron job and the destination directory ends up cluttered with daily dumps. But maybe some people prefer the old behavior - in this case there could be 2 separate options ( |
So it looks like this has been implemented with: I guess you can close this issue? |
This is not yet documented |
|
it's implemented option: |
and if you type |
@6543 yes but the documentation is wrong https://docs.gitea.io/en-us/command-line/#dump Just copy pasting the |
@nodiscc yes would be great!!! files are in https://github.com/go-gitea/gitea/tree/master/docs |
I like
gitea dump
because it allows to backup everything into a single file, but I find it difficult to automate (weekly cron job) because it's doesn't allows to specify the exact destination of the backup (to copy it elsewhere for example).That leaves us with the (not pretty) option to parse the output to get the zip name.. something like
gitea dump --destination /path/to/zip
would be great.Sorry not a go developer, if not I will simply send a PR for this (yeps it's a lame excuse, I know =)
The text was updated successfully, but these errors were encountered: