[TOOLS] Keep feed table in delete content Make rule
This commit is contained in:
parent
12fb876a6d
commit
6cae6c925d
2
Makefile
2
Makefile
|
@ -86,6 +86,7 @@ backup-actors:
|
||||||
copy actor to '/tmp/backup/actor.csv'; copy local_user to '/tmp/backup/local_user.csv';\
|
copy actor to '/tmp/backup/actor.csv'; copy local_user to '/tmp/backup/local_user.csv';\
|
||||||
copy activitypub_actor to '/tmp/backup/ap_actor.csv'; copy activitypub_rsa to '/tmp/backup/ap_rsa.csv';\
|
copy activitypub_actor to '/tmp/backup/ap_actor.csv'; copy activitypub_rsa to '/tmp/backup/ap_rsa.csv';\
|
||||||
copy actor_subscription to '/tmp/backup/actor_subscription.csv'; copy local_group to '/tmp/backup/local_group.csv';\
|
copy actor_subscription to '/tmp/backup/actor_subscription.csv'; copy local_group to '/tmp/backup/local_group.csv';\
|
||||||
|
copy feed to '/tmp/backup/feed.csv';\
|
||||||
copy (SELECT 'ALTER SEQUENCE ' || c.relname || ' RESTART WITH ' || nextval(c.relname::regclass) || ';'\
|
copy (SELECT 'ALTER SEQUENCE ' || c.relname || ' RESTART WITH ' || nextval(c.relname::regclass) || ';'\
|
||||||
FROM pg_class c WHERE c.relkind = 'S') to '/tmp/backup/sequences';\"" && \
|
FROM pg_class c WHERE c.relkind = 'S') to '/tmp/backup/sequences';\"" && \
|
||||||
mkdir -p /tmp/social-sql-backup && \
|
mkdir -p /tmp/social-sql-backup && \
|
||||||
|
@ -99,6 +100,7 @@ restore-actors:
|
||||||
copy actor from '/tmp/backup/actor.csv'; copy local_user from '/tmp/backup/local_user.csv';\
|
copy actor from '/tmp/backup/actor.csv'; copy local_user from '/tmp/backup/local_user.csv';\
|
||||||
copy activitypub_actor from '/tmp/backup/ap_actor.csv'; copy activitypub_rsa from '/tmp/backup/ap_rsa.csv';\
|
copy activitypub_actor from '/tmp/backup/ap_actor.csv'; copy activitypub_rsa from '/tmp/backup/ap_rsa.csv';\
|
||||||
copy actor_subscription from '/tmp/backup/actor_subscription.csv'; copy local_group from '/tmp/backup/local_group.csv';\
|
copy actor_subscription from '/tmp/backup/actor_subscription.csv'; copy local_group from '/tmp/backup/local_group.csv';\
|
||||||
|
copy feed from '/tmp/backup/feed.csv';\
|
||||||
`cat /tmp/social-sql-backup/sequences`\""
|
`cat /tmp/social-sql-backup/sequences`\""
|
||||||
|
|
||||||
force-nuke-everything: down remove-var remove-file up flush-redis-cache database-force-nuke install-plugins
|
force-nuke-everything: down remove-var remove-file up flush-redis-cache database-force-nuke install-plugins
|
||||||
|
|
Loading…
Reference in New Issue
Block a user