Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P927
backfill script with the right backfill.yml and logging.yml configuration files
Active
Public
Actions
Authored by
vsellier
on Jan 20 2021, 6:45 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
#!/bin/bash
objtype=origin_visit_status
first=0
mkdir -p logs/$objtype
inc=50000
# 458591
for i in `seq 0 10`; do
prefix=$(( first + i * $inc))
if [ $prefix -eq $first ]; then
start=$first
else
start=$prefix
fi
end=$((prefix + $inc));
echo "Starting ${objtype} backfill for range $start -> $end"
swh --log-config logging.yml storage --config-file backfill.yml backfill --start-object $start --end-object $end $objtype 2>&1 | tee -a >(gzip -c > logs/$objtype/$prefix.log.gz) &
done
wait
Event Timeline
vsellier
created this paste.
Jan 20 2021, 6:45 PM
2021-01-20 18:45:35 (UTC+1)
vsellier
mentioned this in
T2978: Deploy visit-stats journal client on staging
.
ardumont
edited the content of this paste.
(Show Details)
Jan 26 2021, 2:31 PM
2021-01-26 14:31:56 (UTC+1)
ardumont
mentioned this in
P934 backfill.sh for origin-visit-status
.
Feb 1 2021, 11:54 AM
2021-02-01 11:54:34 (UTC+1)
ardumont
mentioned this in
T2993: Deploy visit-stats journal client on production
.
ardumont
changed the title of this paste from
backfill script
to
backfill script with the right backfill.yml and logging.yml configuration files
.
Feb 1 2021, 11:59 AM
2021-02-01 11:59:44 (UTC+1)
vsellier
mentioned this in
T3009: Manage backfiller configuration in puppet
.
Feb 1 2021, 12:10 PM
2021-02-01 12:10:52 (UTC+1)
Log In to Comment